1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-26 03:22:37 +02:00

Merge pull request #5096 from kasimi/ticket/15523

[ticket/15523] Fix AdBlocker causing JS error when using CookieConsent
This commit is contained in:
Marc Alexander
2018-01-20 18:40:31 +01:00

View File

@@ -62,6 +62,7 @@
<!-- IF S_COOKIE_NOTICE -->
<script src="{T_ASSETS_PATH}/cookieconsent/cookieconsent.min.js?assets_version={T_ASSETS_VERSION}"></script>
<script>
if (typeof window.cookieconsent === "object") {
window.addEventListener("load", function(){
window.cookieconsent.initialise({
"palette": {
@@ -79,7 +80,9 @@
"link": "{LA_COOKIE_CONSENT_INFO}",
"href": "{LA_COOKIE_CONSENT_HREF}"
}
})});
});
});
}
</script>
<!-- ENDIF -->