Fix sessionStorage initialization code
With previous version of this code sessionStorage was never initialized properly. This breaks travis become.
This commit is contained in:
parent
6eba365812
commit
de411b228b
|
@ -19,8 +19,8 @@ sessionStorage = (->
|
|||
try
|
||||
# firefox will not throw error on access for sessionStorage var,
|
||||
# you need to actually get something from session
|
||||
sessionStorage.getItem('foo')
|
||||
storage = sessionStorage
|
||||
window.sessionStorage.getItem('foo')
|
||||
storage = window.sessionStorage
|
||||
catch err
|
||||
storage = Storage.create()
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user