Skip to content

Commit

Permalink
fix(gh-page.ts): fix input id
Browse files Browse the repository at this point in the history
  • Loading branch information
bhsd-harry committed Dec 13, 2023
1 parent 326ccd0 commit 2965374
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions extensions/dist/gh-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import { CodeMirror6 } from 'https://testingcf.jsdelivr.net/npm/@bhsd/codemirror
});
const textbox2 = document.querySelector('#wpTextbox2'), input2 = document.querySelector('#wpInclude2'), instance = new CodeMirror6(textbox2), Linter = new wikiparse.Linter(input2.checked);
instance.lint((view) => Linter.codemirror(view.state.doc.toString()));
input.addEventListener('change', () => {
Linter.include = input.checked;
input2.addEventListener('change', () => {
Linter.include = input2.checked;
instance.update();
});
})();
Expand Down
4 changes: 2 additions & 2 deletions extensions/gh-page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import type {wikiparse, EditorView} from './typings';
instance = new CodeMirror6(textbox2),
Linter = new wikiparse.Linter!(input2.checked);
instance.lint((view: EditorView) => Linter.codemirror(view.state.doc.toString()));
input.addEventListener('change', () => {
Linter.include = input.checked;
input2.addEventListener('change', () => {
Linter.include = input2.checked;
instance.update();
});
})();
Expand Down

0 comments on commit 2965374

Please sign in to comment.