Skip to content

Commit

Permalink
fix(cm6.js): ext
Browse files Browse the repository at this point in the history
  • Loading branch information
bhsd-harry committed Jan 17, 2024
1 parent 0d42912 commit 2153964
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/code-mirror/cm6.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ mw.hook('InPageEdit').add(() =>
*/
function getPageMode(page) {
const {namespace, title} = page
const ext = page.ext.toLowerCase()
const ext = page.ext?.toLowerCase()
const isSubject = namespace % 2 === 0
if (ext === 'css' && isSubject) {
return 'css'
Expand Down

0 comments on commit 2153964

Please sign in to comment.