File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 1616 console = window . console || undefined , // Prevent a JSLint complain
1717 document = window . document , // Make sure we are using the correct document
1818 navigator = window . navigator , // Make sure we are using the correct navigator
19- sessionStorage = window . sessionStorage || false , // sessionStorage
19+ sessionStorage = false , // sessionStorage
2020 setTimeout = window . setTimeout ,
2121 clearTimeout = window . clearTimeout ,
2222 setInterval = window . setInterval ,
2727 history = window . history ; // Old History Object
2828
2929 try {
30+ sessionStorage = window . sessionStorage ; // This will throw an exception in some browsers when cookies/localStorage are explicitly disabled (i.e. Chrome)
3031 sessionStorage . setItem ( 'TEST' , '1' ) ;
3132 sessionStorage . removeItem ( 'TEST' ) ;
3233 } catch ( e ) {
You can’t perform that action at this time.
0 commit comments