From c05eed44f03bc7b3b63747bd03d20397fd9ea726 Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Sun, 13 Dec 2020 01:11:52 +0100 Subject: [PATCH] Did a very bad thing (tm) to appease Chrome (bootstrap icons svg was copied directly into Icon component) --- src/common/components/Icon.vue | 80 +++++++++++++++++++++++++++++----- 1 file changed, 70 insertions(+), 10 deletions(-) diff --git a/src/common/components/Icon.vue b/src/common/components/Icon.vue index fd8006f..aede430 100644 --- a/src/common/components/Icon.vue +++ b/src/common/components/Icon.vue @@ -1,6 +1,69 @@ @@ -15,21 +78,18 @@ export default { // note — webextension-polyfill is not gonna save us here. // been there, tried that. return { - bootstrapIconsBasePath: (BrowserDetect.firefox ? browser : chrome).runtime.getURL('/res/icons/bootstrap-icons.svg'), iconHref: '', }; }, created() { - this.iconHref = `${this.bootstrapIconsBasePath}#${this.icon}`; + this.iconHref = `#${this.icon}`; } } -