Better version of 1a4b7664d819a3e8918547ff673fe6a703b1c45d.
This commit is contained in:
parent
efc5facbbe
commit
3a5708a5aa
@ -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 = {}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user