From 954eb3316aa2b67a09c4d693b81036cfaa4b57a5 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Wed, 28 Sep 2016 23:02:07 -0700 Subject: [PATCH] Only show one warning and keep it open until manually closed. #1012 --- src/platform/$.coffee | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/platform/$.coffee b/src/platform/$.coffee index ca0dc414c..2c01b3a0a 100644 --- a/src/platform/$.coffee +++ b/src/platform/$.coffee @@ -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 reload 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 reload the page.') %> + $.on $('a', msg), 'click', -> location.reload() + new Notice 'warning', msg + $.crxWarningShown = true false $.get = (key, val, cb) ->