From 8a7d17c9ba1778b425727bb2c416f71993f4f364 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Tue, 16 Apr 2013 21:18:36 +0200 Subject: [PATCH] Move the flexbox notification into Main. --- src/features.coffee | 10 ---------- src/main.coffee | 10 ++++++++++ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/features.coffee b/src/features.coffee index e23461a54..0fd60d641 100644 --- a/src/features.coffee +++ b/src/features.coffee @@ -254,16 +254,6 @@ Settings = open: -> Conf['Enable 4chan\'s Extension'] $.get 'previousversion', null, (item) -> - <% if (type === 'userscript') { %> - el = $.el 'span' - el.style.flex = 'test' - if el.style.flex is 'test' - el.innerHTML = """ - Firefox is not correctly set up and some <%= meta.name %> features will be displayed incorrectly.
- Follow the instructions of the install guide to fix it. - """ - new Notification 'warning', el, 30 - <% } %> if previous = item['previousversion'] return if previous is g.VERSION # Avoid conflicts between sync'd newer versions diff --git a/src/main.coffee b/src/main.coffee index c99e13483..c8f33a52b 100644 --- a/src/main.coffee +++ b/src/main.coffee @@ -469,6 +469,16 @@ Main = if $.hasClass d.body, 'fourchan_x' alert '4chan X v2 detected: Disable it or v3 will break.' + <% if (type === 'userscript') { %> + el = $.el 'span' + el.style.flex = 'test' + if el.style.flex is 'test' + el.innerHTML = """ + Firefox is not correctly set up and some <%= meta.name %> features will be displayed incorrectly.
+ Follow the instructions of the install guide to fix it. + """ + new Notification 'warning', el, 30 + <% } %> $.event '4chanXInitFinished' Main.checkUpdate()