File tree Expand file tree Collapse file tree 1 file changed +15
-15
lines changed
app/code/Magento/Theme/view/frontend/web/js Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -6,28 +6,28 @@ define([
6
6
'use strict' ;
7
7
8
8
$ . widget ( 'mage.cookieStatus' , {
9
+ options : {
10
+ type : 'popup' ,
11
+ responsive : true ,
12
+ innerScroll : true ,
13
+ autoOpen : true ,
14
+ buttons : [ {
15
+ text : $ . mage . __ ( 'Close' ) ,
16
+ class : 'cookie-status' ,
17
+ click : function ( ) {
18
+ this . closeModal ( ) ;
19
+ }
20
+ } ]
21
+ } ,
22
+
9
23
/**
10
24
* Init object
11
25
* @private
12
26
*/
13
27
_init : function ( ) {
14
28
15
29
if ( ! navigator . cookieEnabled ) {
16
- const options = {
17
- type : 'popup' ,
18
- responsive : true ,
19
- innerScroll : true ,
20
- autoOpen : true ,
21
- buttons : [ {
22
- text : $ . mage . __ ( 'Close' ) ,
23
- class : 'cookie-status' ,
24
- click : function ( ) {
25
- this . closeModal ( ) ;
26
- }
27
- } ]
28
- } ;
29
-
30
- modal ( options , $ ( '#cookie-status' ) ) ;
30
+ modal ( this . options , $ ( '#cookie-status' ) ) ;
31
31
}
32
32
}
33
33
} ) ;
You can’t perform that action at this time.
0 commit comments