Skip to content

Commit a63fb8f

Browse files
author
Tom J
committed
fix tslint errors | #1657
1 parent 7f8a4b6 commit a63fb8f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

extension/chrome/elements/pgp_block.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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);

extension/chrome/settings/fatal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

2929
if (reason === 'db_corrupted') {

extension/js/common/api/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)