File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -86,11 +86,11 @@ const defaultSettings = {
8686/* On startup, check whether we have stored settings and set up the context menu.
8787 If we don't, then store the default settings. */
8888function checkStoredSettings ( storedSettings ) {
89- if ( storedSettings . openInBackground == null || ! storedSettings . openTabAt || ! storedSettings . storageProviders ) {
89+ if ( Object . getOwnPropertyNames ( storedSettings ) . length ) {
90+ chrome . storage . sync . get ( 'storageProviders' , createContextMenu ) ;
91+ } else {
9092 chrome . storage . sync . set ( defaultSettings ) ;
9193 createContextMenu ( defaultSettings . storageProviders ) ;
92- } else {
93- chrome . storage . sync . get ( 'storageProviders' , createContextMenu ) ;
9494 }
9595}
9696
Original file line number Diff line number Diff line change 44 "name" : " __MSG_extensionName__" ,
55 "description" : " __MSG_extensionDescription__" ,
66 "author" : " Andreas Bielawski" ,
7- "version" : " 3.1.1 " ,
7+ "version" : " 3.1.2 " ,
88 "icons" : {
99 "16" : " icons/16.png" ,
1010 "32" : " icons/32.png" ,
You can’t perform that action at this time.
0 commit comments