Move the flexbox notification into Main.
This commit is contained in:
parent
60d8f0df56
commit
8a7d17c9ba
@ -254,16 +254,6 @@ Settings =
|
|||||||
open: -> Conf['Enable 4chan\'s Extension']
|
open: -> Conf['Enable 4chan\'s Extension']
|
||||||
|
|
||||||
$.get 'previousversion', null, (item) ->
|
$.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.<br>
|
|
||||||
Follow the instructions of the <a href='<%= meta.page %>' target=_blank>install guide</a> to fix it.
|
|
||||||
"""
|
|
||||||
new Notification 'warning', el, 30
|
|
||||||
<% } %>
|
|
||||||
if previous = item['previousversion']
|
if previous = item['previousversion']
|
||||||
return if previous is g.VERSION
|
return if previous is g.VERSION
|
||||||
# Avoid conflicts between sync'd newer versions
|
# Avoid conflicts between sync'd newer versions
|
||||||
|
|||||||
@ -469,6 +469,16 @@ Main =
|
|||||||
|
|
||||||
if $.hasClass d.body, 'fourchan_x'
|
if $.hasClass d.body, 'fourchan_x'
|
||||||
alert '4chan X v2 detected: Disable it or v3 will break.'
|
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.<br>
|
||||||
|
Follow the instructions of the <a href='<%= meta.page %>' target=_blank>install guide</a> to fix it.
|
||||||
|
"""
|
||||||
|
new Notification 'warning', el, 30
|
||||||
|
<% } %>
|
||||||
|
|
||||||
$.event '4chanXInitFinished'
|
$.event '4chanXInitFinished'
|
||||||
Main.checkUpdate()
|
Main.checkUpdate()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user