File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 16
16
console = window . console || undefined , // Prevent a JSLint complain
17
17
document = window . document , // Make sure we are using the correct document
18
18
navigator = window . navigator , // Make sure we are using the correct navigator
19
- sessionStorage = window . sessionStorage || false , // sessionStorage
19
+ sessionStorage = false , // sessionStorage
20
20
setTimeout = window . setTimeout ,
21
21
clearTimeout = window . clearTimeout ,
22
22
setInterval = window . setInterval ,
27
27
history = window . history ; // Old History Object
28
28
29
29
try {
30
+ sessionStorage = window . sessionStorage ; // This will throw an exception in some browsers when cookies/localStorage are explicitly disabled (i.e. Chrome)
30
31
sessionStorage . setItem ( 'TEST' , '1' ) ;
31
32
sessionStorage . removeItem ( 'TEST' ) ;
32
33
} catch ( e ) {
You can’t perform that action at this time.
0 commit comments