mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
Merge pull request #5096 from kasimi/ticket/15523
[ticket/15523] Fix AdBlocker causing JS error when using CookieConsent
This commit is contained in:
commit
227e7cadba
1 changed files with 19 additions and 16 deletions
|
@ -62,24 +62,27 @@
|
||||||
<!-- IF S_COOKIE_NOTICE -->
|
<!-- IF S_COOKIE_NOTICE -->
|
||||||
<script src="{T_ASSETS_PATH}/cookieconsent/cookieconsent.min.js?assets_version={T_ASSETS_VERSION}"></script>
|
<script src="{T_ASSETS_PATH}/cookieconsent/cookieconsent.min.js?assets_version={T_ASSETS_VERSION}"></script>
|
||||||
<script>
|
<script>
|
||||||
window.addEventListener("load", function(){
|
if (typeof window.cookieconsent === "object") {
|
||||||
window.cookieconsent.initialise({
|
window.addEventListener("load", function(){
|
||||||
"palette": {
|
window.cookieconsent.initialise({
|
||||||
"popup": {
|
"palette": {
|
||||||
"background": "#0F538A"
|
"popup": {
|
||||||
|
"background": "#0F538A"
|
||||||
|
},
|
||||||
|
"button": {
|
||||||
|
"background": "#E5E5E5"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"button": {
|
"theme": "classic",
|
||||||
"background": "#E5E5E5"
|
"content": {
|
||||||
|
"message": "{LA_COOKIE_CONSENT_MSG}",
|
||||||
|
"dismiss": "{LA_COOKIE_CONSENT_OK}",
|
||||||
|
"link": "{LA_COOKIE_CONSENT_INFO}",
|
||||||
|
"href": "{LA_COOKIE_CONSENT_HREF}"
|
||||||
}
|
}
|
||||||
},
|
});
|
||||||
"theme": "classic",
|
});
|
||||||
"content": {
|
}
|
||||||
"message": "{LA_COOKIE_CONSENT_MSG}",
|
|
||||||
"dismiss": "{LA_COOKIE_CONSENT_OK}",
|
|
||||||
"link": "{LA_COOKIE_CONSENT_INFO}",
|
|
||||||
"href": "{LA_COOKIE_CONSENT_HREF}"
|
|
||||||
}
|
|
||||||
})});
|
|
||||||
</script>
|
</script>
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue