Warn about Firefox versions <26.
This commit is contained in:
parent
ee1e5d03e6
commit
59fa428db5
@ -190,6 +190,11 @@ Main =
|
||||
alert '4chan X v2 detected: Disable it or v3 will break.'
|
||||
|
||||
<% if (type === 'userscript') { %>
|
||||
test = $.el 'span'
|
||||
test.classList.add 'a', 'b'
|
||||
if test.className isnt 'a b'
|
||||
new Notice 'warning', "Your version of Firefox is outdated (v<%= meta.min.firefox %> minimum) and <%= meta.name %> may not operate correctly.", 30
|
||||
|
||||
GMver = GM_info.version.split '.'
|
||||
for v, i in "<%= meta.min.greasemonkey %>".split '.'
|
||||
break if v < GMver[i]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user