diff options
author | Zero~Informatique | 2020-01-31 15:06:44 +0100 |
---|---|---|
committer | Zero~Informatique | 2020-01-31 15:06:44 +0100 |
commit | be8ec3edaed843f08dac3d2bf2f10f7247ef3d3a (patch) | |
tree | 749ec466c404499f19d571834262b87c14f0d0af | |
parent | 4cf2727131829bd48c062896fdf237cf68a0b472 (diff) | |
download | ldgallery-be8ec3edaed843f08dac3d2bf2f10f7247ef3d3a.tar.gz |
viewer: fixed a CSP issue with inlined SVG CSS; FontAwesome CSS is now external
-rw-r--r-- | viewer/src/plugins/fontawesome.ts | 5 |
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 | ||
20 | import Vue from "vue"; | 20 | import Vue from "vue"; |
21 | 21 | ||
22 | import { library } from "@fortawesome/fontawesome-svg-core"; | 22 | import { library, config } from "@fortawesome/fontawesome-svg-core"; |
23 | import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome"; | 23 | import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome"; |
24 | import { | 24 | import { |
25 | faFolder, | 25 | faFolder, |
@@ -51,4 +51,7 @@ library.add( | |||
51 | faQuestionCircle, | 51 | faQuestionCircle, |
52 | ); | 52 | ); |
53 | 53 | ||
54 | config.autoAddCss = false; | ||
55 | import "@fortawesome/fontawesome-svg-core/styles.css"; | ||
56 | |||
54 | Vue.component("fa-icon", FontAwesomeIcon); | 57 | Vue.component("fa-icon", FontAwesomeIcon); |