File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -43,14 +43,6 @@ function createPopupProBlocker() {
43
43
var popup = document . createElement ( 'div' ) ;
44
44
popup . classList . add ( 'vizualizer-renew-notice-popup' ) ;
45
45
46
- var closeIcon = document . createElement ( 'i' ) ;
47
- closeIcon . classList . add ( 'dashicons' , 'dashicons-no' , 'vizualizer-renew-notice-close-icon' ) ;
48
- closeIcon . addEventListener ( 'click' , function ( ) {
49
- document . body . removeChild ( overlay ) ;
50
- popup . style . display = 'none' ;
51
- } ) ;
52
- popup . appendChild ( closeIcon ) ;
53
-
54
46
var heading = document . createElement ( 'h1' ) ;
55
47
heading . textContent = 'Alert!' ;
56
48
heading . classList . add ( 'vizualizer-renew-notice-heading' ) ;
@@ -83,6 +75,17 @@ function createPopupProBlocker() {
83
75
84
76
popup . appendChild ( buttonsContainer ) ;
85
77
78
+ var closeIcon = document . createElement ( 'i' ) ;
79
+
80
+ closeIcon . classList . add ( 'dashicons' , 'dashicons-no' , 'vizualizer-renew-notice-close-icon' ) ;
81
+
82
+ closeIcon . addEventListener ( 'click' , function ( ) {
83
+ document . body . removeChild ( overlay ) ;
84
+ document . body . removeChild ( popup ) ;
85
+ } ) ;
86
+
87
+ popup . appendChild ( closeIcon ) ;
88
+
86
89
document . body . appendChild ( popup ) ;
87
90
88
91
}
You can’t perform that action at this time.
0 commit comments