Only show one warning and keep it open until manually closed. #1012
This commit is contained in:
parent
6e2f0a7b15
commit
954eb3316a
@ -388,10 +388,12 @@ $.crxWorking = ->
|
|||||||
if chrome.runtime.getManifest()
|
if chrome.runtime.getManifest()
|
||||||
true
|
true
|
||||||
else
|
else
|
||||||
msg = $.el 'div',
|
unless $.crxWarningShown
|
||||||
<%= html('4chan X seems to have been updated. You will need to <a href="javascript:;">reload</a> the page.') %>
|
msg = $.el 'div',
|
||||||
$.on $('a', msg), 'click', -> location.reload()
|
<%= html('4chan X seems to have been updated. You will need to <a href="javascript:;">reload</a> the page.') %>
|
||||||
new Notice 'warning', msg, 20
|
$.on $('a', msg), 'click', -> location.reload()
|
||||||
|
new Notice 'warning', msg
|
||||||
|
$.crxWarningShown = true
|
||||||
false
|
false
|
||||||
|
|
||||||
$.get = (key, val, cb) ->
|
$.get = (key, val, cb) ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user