Added a fix for chrome users #80
This commit is contained in:
parent
a1b0d078d7
commit
e7c08a21e7
|
@ -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}`);
|
||||
|
|
Loading…
Reference in New Issue