Warn users that have cookies disabled.

This commit is contained in:
Mayhem 2013-05-12 23:36:17 +02:00
parent 6e1109d9a9
commit efa99a29b0

View File

@ -198,6 +198,12 @@ Main =
if $.hasClass d.body, 'fourchan_x'
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') { %>
el = $.el 'span'
el.style.flex = 'test'