File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -32,12 +32,12 @@ class LaravelCookieConsent {
32
32
}
33
33
34
34
addScripts ( data ) {
35
- if ( ! data . scripts ) {
35
+ if ( ! data . scripts ) {
36
36
return ;
37
37
}
38
38
39
39
data . scripts . forEach ( script => {
40
- const scriptRegex = / < s c r i p t . * < \/ s c r i p t > / ;
40
+ const scriptRegex = / < s c r i p t [ ^ ] * < \/ s c r i p t > / ;
41
41
if ( ! scriptRegex . test ( script ) ) {
42
42
console . error ( 'Invalid script tag: ' + script ) ;
43
43
}
@@ -56,7 +56,7 @@ class LaravelCookieConsent {
56
56
}
57
57
58
58
addNotice ( data ) {
59
- if ( ! data . notice ) {
59
+ if ( ! data . notice ) {
60
60
return ;
61
61
}
62
62
@@ -68,7 +68,7 @@ class LaravelCookieConsent {
68
68
69
69
let tags = tmp . querySelectorAll ( '[data-cookie-consent]' ) ;
70
70
71
- if ( ! tags . length ) {
71
+ if ( ! tags . length ) {
72
72
return ;
73
73
}
74
74
@@ -85,5 +85,5 @@ class LaravelCookieConsent {
85
85
}
86
86
87
87
window . addEventListener ( 'load' , ( ) => {
88
- window . LaravelCookieConsent = new LaravelCookieConsent ( { config :1 } ) ;
88
+ window . LaravelCookieConsent = new LaravelCookieConsent ( { config : 1 } ) ;
89
89
} ) ;
You can’t perform that action at this time.
0 commit comments