Added a fix for chrome users #80

This commit is contained in:
ManeraKai 2022-03-05 14:42:52 +03:00
parent a1b0d078d7
commit e7c08a21e7
1 changed files with 5 additions and 4 deletions

View File

@ -175,10 +175,11 @@ let theme;
let applyThemeToSites;
function initBibliogramCookies(url) {
let protocolHost = `${url.protocol}//${url.host}`;
browser.cookies.get({
browser.cookies.get(
{
url: protocolHost,
name: "settings"
}).then(
},
cookie => {
if (!cookie || !instancesCookies.includes(protocolHost)) {
console.log(`initing cookie for ${protocolHost}`);