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}`);