Skip to content

Commit f5e81e2

Browse files
committed
Fix options for Chromium
1 parent 9b61404 commit f5e81e2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/scripts/options/options.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ JSON.safeParse = function (str) {
3636

3737
chrome.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');

0 commit comments

Comments
 (0)