From be8ec3edaed843f08dac3d2bf2f10f7247ef3d3a Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Fri, 31 Jan 2020 15:06:44 +0100 Subject: viewer: fixed a CSP issue with inlined SVG CSS; FontAwesome CSS is now external --- viewer/src/plugins/fontawesome.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'viewer/src/plugins') diff --git a/viewer/src/plugins/fontawesome.ts b/viewer/src/plugins/fontawesome.ts index 460e407..a15f4ce 100644 --- a/viewer/src/plugins/fontawesome.ts +++ b/viewer/src/plugins/fontawesome.ts @@ -19,7 +19,7 @@ import Vue from "vue"; -import { library } from "@fortawesome/fontawesome-svg-core"; +import { library, config } from "@fortawesome/fontawesome-svg-core"; import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome"; import { faFolder, @@ -51,4 +51,7 @@ library.add( faQuestionCircle, ); +config.autoAddCss = false; +import "@fortawesome/fontawesome-svg-core/styles.css"; + Vue.component("fa-icon", FontAwesomeIcon); -- cgit v1.2.3