1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-11 09:06:23 +02:00

remmove dead code.

This commit is contained in:
Kushagra Gour
2016-05-17 02:06:28 +05:30
parent cb3d71d235
commit ddf3918e62
2 changed files with 1 additions and 16 deletions

View File

@ -1,11 +1,3 @@
chrome.browserAction.onClicked.addListener(function(activeTab) { chrome.browserAction.onClicked.addListener(function(activeTab) {
chrome.tabs.create({ url: chrome.extension.getURL('index.html'), selected: true }); 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);
});
});*/

View File

@ -61,14 +61,7 @@
window.saveSetting = function saveSetting(setting, value) { window.saveSetting = function saveSetting(setting, value) {
var obj = {}; var obj = {};
obj[setting] = value; 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() { chrome.storage.local.set(obj, function() {
console.log('saved', request);
}); });
}; };