Fix errors in private tab in Safari. #595
This commit is contained in:
parent
9e922f172d
commit
7660725ba2
@ -349,11 +349,13 @@ $.engine = do ->
|
|||||||
|
|
||||||
$.platform = '<%= type %>';
|
$.platform = '<%= type %>';
|
||||||
|
|
||||||
try
|
$.hasStorage = do ->
|
||||||
localStorage.getItem 'x'
|
try
|
||||||
$.hasStorage = true
|
return true if localStorage[g.NAMESPACE + 'hasStorage'] is 'true'
|
||||||
catch
|
localStorage[g.NAMESPACE + 'hasStorage'] = 'true'
|
||||||
$.hasStorage = false
|
return localStorage[g.NAMESPACE + 'hasStorage'] is 'true'
|
||||||
|
catch
|
||||||
|
false
|
||||||
|
|
||||||
$.item = (key, val) ->
|
$.item = (key, val) ->
|
||||||
item = {}
|
item = {}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user