File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
app/code/Magento/Theme/view/base Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -60,10 +60,11 @@ var config = {
60
60
}
61
61
} ;
62
62
63
+ /* eslint-disable max-depth */
63
64
/**
64
65
* Adds polyfills only for browser contexts which prevents bundlers from including them.
65
66
*/
66
- if ( typeof window !== " undefined" && window . document ) {
67
+ if ( typeof window !== ' undefined' && window . document ) {
67
68
/**
68
69
* Polyfill localStorage and sessionStorage for browsers that do not support them.
69
70
*/
@@ -78,6 +79,7 @@ if (typeof window !== "undefined" && window.document) {
78
79
config . deps . push ( 'mage/polyfill' ) ;
79
80
}
80
81
}
82
+ /* eslint-enable max-depth */
81
83
82
84
require ( [ 'jquery' ] , function ( $ ) {
83
85
'use strict' ;
Original file line number Diff line number Diff line change 1
1
( function ( root , doc ) {
2
2
'use strict' ;
3
+
4
+ var Storage ;
5
+
3
6
try {
4
7
if ( ! root . localStorage || ! root . sessionStorage ) {
5
8
throw new Error ( ) ;
12
15
* Returns a storage object to shim local or sessionStorage
13
16
* @param {String } type - either 'local' or 'session'
14
17
*/
15
- var Storage = function ( type ) {
18
+ Storage = function ( type ) {
16
19
var data ;
17
20
18
21
/**
You can’t perform that action at this time.
0 commit comments