mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 12:28:52 +00:00
[ticket/15523] Fix AdBlocker causing JS error when using CookieConsent
PHPBB3-15523
This commit is contained in:
parent
adc75b700f
commit
ce6adeea02
1 changed files with 19 additions and 16 deletions
|
@ -62,6 +62,7 @@
|
||||||
<!-- 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>
|
||||||
|
if (typeof window.cookieconsent === "object") {
|
||||||
window.addEventListener("load", function(){
|
window.addEventListener("load", function(){
|
||||||
window.cookieconsent.initialise({
|
window.cookieconsent.initialise({
|
||||||
"palette": {
|
"palette": {
|
||||||
|
@ -79,7 +80,9 @@
|
||||||
"link": "{LA_COOKIE_CONSENT_INFO}",
|
"link": "{LA_COOKIE_CONSENT_INFO}",
|
||||||
"href": "{LA_COOKIE_CONSENT_HREF}"
|
"href": "{LA_COOKIE_CONSENT_HREF}"
|
||||||
}
|
}
|
||||||
})});
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue