Fix sessionStorage initialization code

With previous version of this code sessionStorage was never initialized
properly. This breaks travis become.
This commit is contained in:
Piotr Sarnacki 2015-03-16 11:48:58 +01:00
parent 6eba365812
commit de411b228b

View File

@ -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()