Make Chrome extension reload warning work when chrome.runtime.getManifest() throws an error.
This commit is contained in:
parent
0c286e7a68
commit
a2a4600be0
@ -419,9 +419,9 @@ $.sync = (key, cb) ->
|
|||||||
$.forceSync = -> return
|
$.forceSync = -> return
|
||||||
|
|
||||||
$.crxWorking = ->
|
$.crxWorking = ->
|
||||||
|
try
|
||||||
if chrome.runtime.getManifest()
|
if chrome.runtime.getManifest()
|
||||||
true
|
return true
|
||||||
else
|
|
||||||
unless $.crxWarningShown
|
unless $.crxWarningShown
|
||||||
msg = $.el 'div',
|
msg = $.el 'div',
|
||||||
<%= html('4chan X seems to have been updated. You will need to <a href="javascript:;">reload</a> the page.') %>
|
<%= html('4chan X seems to have been updated. You will need to <a href="javascript:;">reload</a> the page.') %>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user