Only show one warning and keep it open until manually closed. #1012

This commit is contained in:
ccd0 2016-09-28 23:02:07 -07:00
parent 6e2f0a7b15
commit 954eb3316a

View File

@ -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) ->