File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ JSON.safeParse = function (str) {
3636
3737chrome . runtime . getBackgroundPage ( ( bg ) => {
3838 const documentReady = ( ) => {
39- if ( ! browser ) {
39+ if ( typeof browser === 'undefined' ) {
4040 const warning = document . querySelector ( '.ff-warning' ) ;
4141 warning . parentNode . removeChild ( warning ) ;
4242 }
@@ -292,7 +292,7 @@ chrome.runtime.getBackgroundPage((bg) => {
292292 if ( message . data . action === 'finished' ) {
293293 smartImportStatus . textContent = 'Loading data to memory!' ;
294294 bg . fetchAll ( ) . then ( function ( ) {
295- if ( browser ) {
295+ if ( typeof browser !== 'undefined' ) {
296296 chrome . runtime . reload ( ) ;
297297 }
298298 bg . info . refreshSpecialCounters ( ) ;
@@ -309,7 +309,7 @@ chrome.runtime.getBackgroundPage((bg) => {
309309 alert ( 'Importing error: ' + error . message ) ;
310310 } ;
311311 } ;
312- if ( browser ) {
312+ if ( typeof browser !== 'undefined' ) {
313313 reader . readAsText ( file ) ;
314314 } else {
315315 const url = chrome . extension . getURL ( 'rss.html' ) ;
You can’t perform that action at this time.
0 commit comments