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