Work-around for Chromium unable to load the placeholder icon.
This commit is contained in:
parent
0a789bece4
commit
b99c0a6077
|
@ -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) {
|
||||
|
|
2
src/nscl
2
src/nscl
|
@ -1 +1 @@
|
|||
Subproject commit a4a796785e7a6679394b4e471251fe696601b4fa
|
||||
Subproject commit decd09d7a9bc91e814d9b7987fd0e827aa517960
|
Loading…
Reference in New Issue