Skip to content

Commit

Permalink
Make sure the window.cookieconsent object is loaded before using it, …
Browse files Browse the repository at this point in the history
…as some browsers or extensions might block it
  • Loading branch information
alextselegidis committed Mar 8, 2022
1 parent c1a8dba commit 13e81c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/frontend_book.js
Expand Up @@ -57,7 +57,7 @@ window.FrontendBook = window.FrontendBook || {};
defaultEventHandlers = defaultEventHandlers || true;
manageMode = manageMode || false;

if (GlobalVariables.displayCookieNotice) {
if (GlobalVariables.displayCookieNotice && window.cookieconsent) {
cookieconsent.initialise({
palette: {
popup: {
Expand Down

0 comments on commit 13e81c8

Please sign in to comment.