|
|
@ -28,6 +28,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
if ( !sp.prefs.urlbar ) {
|
|
|
|
if ( !sp.prefs.urlbar ) {
|
|
|
|
createWidget();
|
|
|
|
createWidget();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
w.driver.displayApps();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
tab.on('ready', function(tab) {
|
|
|
|
tab.on('ready', function(tab) {
|
|
|
@ -193,9 +195,9 @@
|
|
|
|
widget.destroy();
|
|
|
|
widget.destroy();
|
|
|
|
|
|
|
|
|
|
|
|
createPanel();
|
|
|
|
createPanel();
|
|
|
|
|
|
|
|
|
|
|
|
w.driver.displayApps();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
w.driver.displayApps();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
var httpRequestObserver = {
|
|
|
|
var httpRequestObserver = {
|
|
|
@ -249,7 +251,6 @@
|
|
|
|
w.log('display apps');
|
|
|
|
w.log('display apps');
|
|
|
|
|
|
|
|
|
|
|
|
if ( tabCache[tabs.activeTab.id] === undefined ) {
|
|
|
|
if ( tabCache[tabs.activeTab.id] === undefined ) {
|
|
|
|
console.log(tabs);
|
|
|
|
|
|
|
|
initTab(tabs.activeTab);
|
|
|
|
initTab(tabs.activeTab);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -267,15 +268,13 @@
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
addIcon('images/icon32.png');
|
|
|
|
addIcon('images/icon32.png');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else if ( count ) {
|
|
|
|
|
|
|
|
|
|
|
|
if ( count > 0 ) {
|
|
|
|
|
|
|
|
// Find the main application to display
|
|
|
|
// Find the main application to display
|
|
|
|
var i, appName, found = false;
|
|
|
|
var
|
|
|
|
|
|
|
|
appName,
|
|
|
|
|
|
|
|
found = false;
|
|
|
|
|
|
|
|
|
|
|
|
if ( !sp.prefs.urlbar ) {
|
|
|
|
widget.contentURL = data.url('images/icon32_hot.png');
|
|
|
|
widget.contentURL = data.url('images/icon32_hot.png');
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
w.driver.categoryOrder.forEach(function(match) {
|
|
|
|
w.driver.categoryOrder.forEach(function(match) {
|
|
|
|
for ( appName in w.detected[url] ) {
|
|
|
|
for ( appName in w.detected[url] ) {
|
|
|
@ -288,7 +287,7 @@
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
panel.port.emit('displayApps', { tabCache: tabCache[tabs.activeTab.id], apps: w.apps, categories: w.categories, categoryNames: categoryNames });
|
|
|
|
panel.port.emit('displayApps', { tabCache: tabCache[tabs.activeTab.id], apps: w.apps, categories: w.categories, categoryNames: categoryNames });
|
|
|
|
},
|
|
|
|
},
|
|
|
|