Warn users that have cookies disabled.
This commit is contained in:
parent
6e1109d9a9
commit
efa99a29b0
@ -198,6 +198,12 @@ 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.'
|
||||||
|
|
||||||
|
try
|
||||||
|
localStorage.getItem '4chan-settings'
|
||||||
|
catch err
|
||||||
|
new Notification 'warning', 'Cookies need to be enabled on 4chan for <%= meta.name %> to properly function.', 30
|
||||||
|
|
||||||
<% if (type === 'userscript') { %>
|
<% if (type === 'userscript') { %>
|
||||||
el = $.el 'span'
|
el = $.el 'span'
|
||||||
el.style.flex = 'test'
|
el.style.flex = 'test'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user