From 8499e3d4722d1ee3a1d16ef9dd9b8bf0b2f32df5 Mon Sep 17 00:00:00 2001 From: Florian Hotze Date: Tue, 17 Dec 2024 10:12:37 +0100 Subject: [PATCH] Fix scripting add-on availability check for old JS Scripting MIME type Regression from #2743. Signed-off-by: Florian Hotze --- .../web/src/components/rule/module-wizard-mixin.js | 1 + 1 file changed, 1 insertion(+) diff --git a/bundles/org.openhab.ui/web/src/components/rule/module-wizard-mixin.js b/bundles/org.openhab.ui/web/src/components/rule/module-wizard-mixin.js index c12a09cb1c..a78e0d0709 100644 --- a/bundles/org.openhab.ui/web/src/components/rule/module-wizard-mixin.js +++ b/bundles/org.openhab.ui/web/src/components/rule/module-wizard-mixin.js @@ -74,6 +74,7 @@ export default { }) }, isMimeTypeAvailable (mimeType) { + if (mimeType === 'application/javascript;version=ECMAScript-2021') mimeType === 'application/javascript' return this.languages.map(l => l.contentType).includes(mimeType) } }