From f8a914c8cc7e27179445f26a03cda55cfafe3537 Mon Sep 17 00:00:00 2001 From: Penar Musaraj Date: Tue, 26 Jul 2022 13:35:02 -0400 Subject: [PATCH] FIX: Use local theme files for external libs This also makes sure we don't need any CSP rules for the loaded JS files. --- javascripts/discourse/components/spreadsheet-editor.js | 4 ++-- settings.yml | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) delete mode 100644 settings.yml diff --git a/javascripts/discourse/components/spreadsheet-editor.js b/javascripts/discourse/components/spreadsheet-editor.js index e84a84f..f57d1a7 100644 --- a/javascripts/discourse/components/spreadsheet-editor.js +++ b/javascripts/discourse/components/spreadsheet-editor.js @@ -86,8 +86,8 @@ export default class SpreadsheetEditor extends GlimmerComponent { // Helper Methods: loadLibraries() { - return loadScript(settings.theme_uploads.jsuites).then(() => { - return loadScript(settings.theme_uploads.jspreadsheet); + return loadScript(settings.theme_uploads_local.jsuites).then(() => { + return loadScript(settings.theme_uploads_local.jspreadsheet); }); } diff --git a/settings.yml b/settings.yml deleted file mode 100644 index 7a6a11d..0000000 --- a/settings.yml +++ /dev/null @@ -1,3 +0,0 @@ -extend_content_security_policy: - type: list - default: "script_src: http://localhost:4200/"