Skip to content

Commit 8d46723

Browse files
authored
Update useCookie formate
1 parent 596bb61 commit 8d46723

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

view/frontend/web/insights.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ define(
1818
track: function (algoliaConfig, partial = false) {
1919
this.config = algoliaConfig;
2020
this.defaultIndexName = algoliaConfig.indexName + '_products';
21-
let useCookie = this.config.cookieConfiguration.cookieRestrictionModeEnabled ? !!getCookie(this.config.cookieConfiguration.consentCookieName) : true;
21+
this.useCookie = this.config.cookieConfiguration.cookieRestrictionModeEnabled ? !!getCookie(this.config.cookieConfiguration.consentCookieName) : true;
2222
if (this.isTracking || this.useCookie === false) {
2323
return;
2424
}

0 commit comments

Comments
 (0)