Better version of 1a4b7664d819a3e8918547ff673fe6a703b1c45d.

This commit is contained in:
ccd0 2015-11-14 01:13:29 -08:00
parent efc5facbbe
commit 3a5708a5aa

View File

@ -338,12 +338,11 @@ $.engine = do ->
return 'webkit' if /WebKit\//.test navigator.userAgent
return 'gecko' if /Gecko\/|Goanna/.test navigator.userAgent # Goanna = Pale Moon 26+
do ->
try
localStorage.getItem 'x'
$.hasStorage = true
catch err
$.hasStorage = false
try
localStorage.getItem 'x'
$.hasStorage = true
catch
$.hasStorage = false
$.item = (key, val) ->
item = {}