Skip to content

Commit

Permalink
Fix missed removed variable
Browse files Browse the repository at this point in the history
  • Loading branch information
lahmatiy committed Nov 9, 2024
1 parent adce820 commit 246051d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/text/source.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export default function(host) {

// prevent syntax highlighting for sources over maxSourceSizeToHighlight to avoid page freeze
if (source.length < maxSourceSizeToHighlight) {
decorators.push([codeMirrorHighlight(syntax || mime, host), {
decorators.push([codeMirrorHighlight(syntax, host), {
html: {
open({ data: type }) {
return '<span class="token ' + type + '">';
Expand Down

0 comments on commit 246051d

Please sign in to comment.