mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-21 23:42:21 +03:00
Make sure the window.cookieconsent object is loaded before using it, as some browsers or extensions might block it
This commit is contained in:
parent
c1a8dba1a3
commit
13e81c80b1
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ window.FrontendBook = window.FrontendBook || {};
|
||||||
defaultEventHandlers = defaultEventHandlers || true;
|
defaultEventHandlers = defaultEventHandlers || true;
|
||||||
manageMode = manageMode || false;
|
manageMode = manageMode || false;
|
||||||
|
|
||||||
if (GlobalVariables.displayCookieNotice) {
|
if (GlobalVariables.displayCookieNotice && window.cookieconsent) {
|
||||||
cookieconsent.initialise({
|
cookieconsent.initialise({
|
||||||
palette: {
|
palette: {
|
||||||
popup: {
|
popup: {
|
||||||
|
|
Loading…
Reference in a new issue