From e7c08a21e7a12dc3edb97bd55c03630c34af59de Mon Sep 17 00:00:00 2001 From: ManeraKai Date: Sat, 5 Mar 2022 14:42:52 +0300 Subject: [PATCH] Added a fix for chrome users #80 --- src/assets/javascripts/helpers/instagram.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/assets/javascripts/helpers/instagram.js b/src/assets/javascripts/helpers/instagram.js index 5dfa4e8..82a899d 100644 --- a/src/assets/javascripts/helpers/instagram.js +++ b/src/assets/javascripts/helpers/instagram.js @@ -175,10 +175,11 @@ let theme; let applyThemeToSites; function initBibliogramCookies(url) { let protocolHost = `${url.protocol}//${url.host}`; - browser.cookies.get({ - url: protocolHost, - name: "settings" - }).then( + browser.cookies.get( + { + url: protocolHost, + name: "settings" + }, cookie => { if (!cookie || !instancesCookies.includes(protocolHost)) { console.log(`initing cookie for ${protocolHost}`);