mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-11 00:56:25 +02:00
remmove dead code.
This commit is contained in:
@ -1,11 +1,3 @@
|
||||
chrome.browserAction.onClicked.addListener(function(activeTab) {
|
||||
chrome.tabs.create({ url: chrome.extension.getURL('index.html'), selected: true });
|
||||
});
|
||||
|
||||
// TODO: remove me
|
||||
// Listen for messsage from tab script
|
||||
/*chrome.runtime.onMessage.addListener(function(request, sender, sendResponse) {
|
||||
chrome.storage.local.set(request, function() {
|
||||
console.log('saved', request);
|
||||
});
|
||||
});*/
|
||||
|
@ -61,14 +61,7 @@
|
||||
window.saveSetting = function saveSetting(setting, value) {
|
||||
var obj = {};
|
||||
obj[setting] = value;
|
||||
// TODO: remove me
|
||||
// We delegate the saving to background script because, this tab cannot do
|
||||
// async saving once the tab starts unloading.
|
||||
// chrome.runtime.sendMessage(obj, function(response) {
|
||||
// console.log(response);
|
||||
// });
|
||||
chrome.storage.local.set(obj, function() {
|
||||
console.log('saved', request);
|
||||
});
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user