mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-10 16:46:28 +02:00
remmove dead code.
This commit is contained in:
@ -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