src/background.js
//Get saved setting and initialize GUI items
Get saved setting and initialize GUI items
Get saved setting and initialize GUI items
init() {
      chrome.storage.sync.get({
        activate: true,
        contextmenu: true,
        contextmenuActivate: true
      }, function(items) {
        self.updateContextMenu(items);
      });
      chrome.runtime.onInstalled.addListener(self.onInstalled);
      chrome.runtime.onMessage.addListener(self.onMessageReceived);
    }
init ( ) { chrome . storage . sync . get ( { activate : true , contextmenu : true , contextmenuActivate : true } , function ( items ) { self . updateContextMenu ( items ) ; } ) ; chrome . runtime . onInstalled . addListener ( self . onInstalled ) ; chrome . runtime . onMessage . addListener ( self . onMessageReceived ) ; }
Get saved setting and initialize GUI items
Get saved setting and initialize GUI items