Navigation Menu

Skip to content

Commit

Permalink
Add storage: plugins to firefox.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenshin committed Aug 27, 2018
1 parent 3d8f486 commit 9e42ba0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ext/background.js
Expand Up @@ -190,8 +190,8 @@ browser.tabs.onUpdated.addListener( function( tabId, changeInfo, tab ) {

if ( !tab.url.startsWith( "moz-extension://" ) ) {
browser.tabs.sendMessage( tabId, msg.Add( msg.MESSAGE_ACTION.tab_selected, { is_update: true } ));
storage.ReadAsync( ( simpread, secret ) => {
browser.tabs.sendMessage( tabId, msg.Add( msg.MESSAGE_ACTION.storage, { simpread, secret } ));
storage.ReadAsync( ( simpread, secret, plugins ) => {
browser.tabs.sendMessage( tabId, msg.Add( msg.MESSAGE_ACTION.storage, { simpread, secret, plugins } ));
});
} else {
setMenuAndIcon( tab.id, -1 );
Expand Down
2 changes: 1 addition & 1 deletion ext/contentscripts.js
Expand Up @@ -108,7 +108,7 @@ browser.runtime.onMessage.addListener( function( request, sender, sendResponse )
break;
case msg.MESSAGE_ACTION.storage:
if ( storage_load ) return;
storage.WriteAsync( request.value.simpread, request.value.secret );
storage.WriteAsync( request.value.simpread, request.value.secret, request.value.plugins );
if ( blacklist() ) {
$( "style" ).map( ( idx, item ) => {
if ( item.innerText.includes( "simpread" ) ||
Expand Down

0 comments on commit 9e42ba0

Please sign in to comment.