File tree Expand file tree Collapse file tree 2 files changed +21
-21
lines changed
app/code/Magento/Theme/view Expand file tree Collapse file tree 2 files changed +21
-21
lines changed Original file line number Diff line number Diff line change @@ -60,27 +60,6 @@ var config = {
60
60
}
61
61
} ;
62
62
63
- /* eslint-disable max-depth */
64
- /**
65
- * Adds polyfills only for browser contexts which prevents bundlers from including them.
66
- */
67
- if ( typeof window !== 'undefined' && window . document ) {
68
- /**
69
- * Polyfill localStorage and sessionStorage for browsers that do not support them.
70
- */
71
- try {
72
- if ( ! window . localStorage || ! window . sessionStorage ) {
73
- throw new Error ( ) ;
74
- }
75
-
76
- localStorage . setItem ( 'storage_test' , 1 ) ;
77
- localStorage . removeItem ( 'storage_test' ) ;
78
- } catch ( e ) {
79
- config . deps . push ( 'mage/polyfill' ) ;
80
- }
81
- }
82
- /* eslint-enable max-depth */
83
-
84
63
require ( [ 'jquery' ] , function ( $ ) {
85
64
'use strict' ;
86
65
Original file line number Diff line number Diff line change @@ -49,3 +49,24 @@ var config = {
49
49
}
50
50
}
51
51
} ;
52
+
53
+ /* eslint-disable max-depth */
54
+ /**
55
+ * Adds polyfills only for browser contexts which prevents bundlers from including them.
56
+ */
57
+ if ( typeof window !== 'undefined' && window . document ) {
58
+ /**
59
+ * Polyfill localStorage and sessionStorage for browsers that do not support them.
60
+ */
61
+ try {
62
+ if ( ! window . localStorage || ! window . sessionStorage ) {
63
+ throw new Error ( ) ;
64
+ }
65
+
66
+ localStorage . setItem ( 'storage_test' , 1 ) ;
67
+ localStorage . removeItem ( 'storage_test' ) ;
68
+ } catch ( e ) {
69
+ config . deps . push ( 'mage/polyfill' ) ;
70
+ }
71
+ }
72
+ /* eslint-enable max-depth */
You can’t perform that action at this time.
0 commit comments