File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -501,7 +501,7 @@ Catch.try(async () => {
501501 console . info ( e . data ) ;
502502 await renderErr ( Lang . pgpBlock . cantOpen + Lang . pgpBlock . badFormat + Lang . pgpBlock . dontKnowHowOpen , e . data ) ;
503503 } else if ( Api . err . isInPrivateMode ( e ) ) {
504- await renderErr ( `Error: FlowCrypt extension cannot communicate with its background script to decrypt this message.
504+ await renderErr ( `Error: FlowCrypt extension cannot communicate with its background script to decrypt this message.
505505 On Firefox, this is commonly caused by the Private Browsing Mode or the use of Firefox Containers.` , undefined ) ;
506506 } else {
507507 Catch . reportErr ( e ) ;
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ const dbCorruptedHtml = `
2323 <p>Email [email protected] if you need any help.</p> 2424` ;
2525
26- const checkFfSettings = `If you are on Firefox, check that <b>indexedDB.enabled</b> is set to <b>true</b> in browser about:config
26+ const checkFfSettings = `If you are on Firefox, check that <b>indexedDB.enabled</b> is set to <b>true</b> in browser about:config
2727 or check if Firefox remembers history in <b>Options/Preferences</b> -> <b>Privacy & Security</b> -> <b>History</b>.` ;
2828
2929if ( reason === 'db_corrupted' ) {
Original file line number Diff line number Diff line change @@ -319,7 +319,7 @@ export class Api {
319319 && ! Api . err . isBlockedByProxy ( e ) ;
320320 } ,
321321 isInPrivateMode : ( e : any ) => {
322- return e . message . startsWith ( 'BrowserMsg() (no status text): -1 when GET-ing blob:moz-extension://' ) ;
322+ return e instanceof Error && e . message . startsWith ( 'BrowserMsg() (no status text): -1 when GET-ing blob:moz-extension://' ) ;
323323 }
324324 } ;
325325
You can’t perform that action at this time.
0 commit comments