diff --git a/src/platform/$.coffee b/src/platform/$.coffee index c5daeb515..5bfb68206 100644 --- a/src/platform/$.coffee +++ b/src/platform/$.coffee @@ -429,16 +429,16 @@ $.sync = (key, cb) -> $.forceSync = -> return $.crxWorking = -> - if chrome.runtime.getManifest() - true - else - unless $.crxWarningShown - msg = $.el 'div', - <%= html('4chan X seems to have been updated. You will need to reload the page.') %> - $.on $('a', msg), 'click', -> location.reload() - new Notice 'warning', msg - $.crxWarningShown = true - false + try + if chrome.runtime.getManifest() + return true + unless $.crxWarningShown + msg = $.el 'div', + <%= html('4chan X seems to have been updated. You will need to reload the page.') %> + $.on $('a', msg), 'click', -> location.reload() + new Notice 'warning', msg + $.crxWarningShown = true + false $.get = $.oneItemSugar (data, cb) -> return unless $.crxWorking()