aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZero~Informatique2020-01-31 15:06:44 +0100
committerZero~Informatique2020-01-31 15:06:44 +0100
commitbe8ec3edaed843f08dac3d2bf2f10f7247ef3d3a (patch)
tree749ec466c404499f19d571834262b87c14f0d0af
parent4cf2727131829bd48c062896fdf237cf68a0b472 (diff)
downloadldgallery-be8ec3edaed843f08dac3d2bf2f10f7247ef3d3a.tar.gz
viewer: fixed a CSP issue with inlined SVG CSS; FontAwesome CSS is now external
-rw-r--r--viewer/src/plugins/fontawesome.ts5
1 files changed, 4 insertions, 1 deletions
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 @@
19 19
20import Vue from "vue"; 20import Vue from "vue";
21 21
22import { library } from "@fortawesome/fontawesome-svg-core"; 22import { library, config } from "@fortawesome/fontawesome-svg-core";
23import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome"; 23import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
24import { 24import {
25 faFolder, 25 faFolder,
@@ -51,4 +51,7 @@ library.add(
51 faQuestionCircle, 51 faQuestionCircle,
52); 52);
53 53
54config.autoAddCss = false;
55import "@fortawesome/fontawesome-svg-core/styles.css";
56
54Vue.component("fa-icon", FontAwesomeIcon); 57Vue.component("fa-icon", FontAwesomeIcon);