We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5532f36 commit bcb33f1Copy full SHA for bcb33f1
src/index.js
@@ -243,7 +243,11 @@ var client = function(sitekey, privatekey) {
243
return;
244
}
245
246
- if (!cookie.checkCookie()) {
+ if (!cookie.checkCookie() || !options || !options.checkCookieConsentFunction) {
247
+ return;
248
+ }
249
+
250
+ if (typeof options.checkCookieConsentFunction != 'function' || !options.checkCookieConsentFunction.call()) {
251
252
253
0 commit comments