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()
|
||||
true
|
||||
else
|
||||
msg = $.el 'div',
|
||||
<%= html('4chan X seems to have been updated. You will need to <a href="javascript:;">reload</a> the page.') %>
|
||||
$.on $('a', msg), 'click', -> location.reload()
|
||||
new Notice 'warning', msg, 20
|
||||
unless $.crxWarningShown
|
||||
msg = $.el 'div',
|
||||
<%= html('4chan X seems to have been updated. You will need to <a href="javascript:;">reload</a> the page.') %>
|
||||
$.on $('a', msg), 'click', -> location.reload()
|
||||
new Notice 'warning', msg
|
||||
$.crxWarningShown = true
|
||||
false
|
||||
|
||||
$.get = (key, val, cb) ->
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user