Skip to content

Commit

Permalink
Fix scripting add-on availability check for old JS Scripting MIME type
Browse files Browse the repository at this point in the history
Regression from #2743.

Signed-off-by: Florian Hotze <[email protected]>
  • Loading branch information
florian-h05 authored Dec 17, 2024
1 parent 97b37f6 commit 8499e3d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export default {
})
},
isMimeTypeAvailable (mimeType) {
if (mimeType === 'application/javascript;version=ECMAScript-2021') mimeType === 'application/javascript'

Check failure on line 77 in bundles/org.openhab.ui/web/src/components/rule/module-wizard-mixin.js

View workflow job for this annotation

GitHub Actions / webpack-stats

Expected an assignment or function call and instead saw an expression

Check failure on line 77 in bundles/org.openhab.ui/web/src/components/rule/module-wizard-mixin.js

View workflow job for this annotation

GitHub Actions / checks

Expected an assignment or function call and instead saw an expression
return this.languages.map(l => l.contentType).includes(mimeType)
}
}
Expand Down

0 comments on commit 8499e3d

Please sign in to comment.