Appease the linter

This commit is contained in:
Travis Ralston 2021-07-16 16:11:27 -06:00
parent 31d7de628e
commit 4d38218e24
4 changed files with 2 additions and 3 deletions

View file

@ -31,6 +31,7 @@ export let DOWNLOAD_ICON_URL; // cached copy of the download.svg asset for the s
async function cacheDownloadIcon() {
if (DOWNLOAD_ICON_URL) return; // cached already
// eslint-disable-next-line @typescript-eslint/no-var-requires
const svg = await fetch(require("../../../../res/img/download.svg")).then(r => r.text());
DOWNLOAD_ICON_URL = "data:image/svg+xml;base64," + window.btoa(svg);
}