Work-around for Chromium unable to load the placeholder icon.

This commit is contained in:
hackademix 2022-11-17 22:43:19 +01:00
parent 0a789bece4
commit b99c0a6077
No known key found for this signature in database
GPG Key ID: 231A83AFDA9C2434
2 changed files with 16 additions and 2 deletions

View File

@ -218,7 +218,21 @@
},
async getTheme() {
return (await Themes.isVintage()) ? "vintage" : "";
}
},
async fetchResource({url}) {
url = browser.runtime.getURL(url);
const blob = await (await fetch(url)).blob();
return new Promise((resolve, reject) => {
const reader = new FileReader();
reader.onload = e => {
resolve(reader.result);
};
reader.onerror = e => {
reject(reader.error);
};
reader.readAsDataURL(blob);
});
},
};
function onSyncMessage(msg, sender) {

@ -1 +1 @@
Subproject commit a4a796785e7a6679394b4e471251fe696601b4fa
Subproject commit decd09d7a9bc91e814d9b7987fd0e827aa517960