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
#2928)

Regression from #2743.

Signed-off-by: Florian Hotze <[email protected]>
(cherry picked from commit 511b949)
  • Loading branch information
florian-h05 committed Dec 17, 2024
1 parent 6b1191a commit 2891765
Show file tree
Hide file tree
Showing 2 changed files with 2 additions 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'
return this.languages.map(l => l.contentType).includes(mimeType)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,7 @@ export default {
})
},
isMimeTypeAvailable (mimeType) {
if (mimeType === 'application/javascript;version=ECMAScript-2021') mimeType = 'application/javascript'
return this.languages.map(l => l.contentType).includes(mimeType)
},
mimeTypeDescription (mode) {
Expand Down

0 comments on commit 2891765

Please sign in to comment.