Skip to content

Commit

Permalink
fix(problems): 官方已经阻止了新版答题页中保存页面的弹窗
Browse files Browse the repository at this point in the history
  • Loading branch information
XYShaoKang committed Nov 3, 2022
1 parent 378bcd8 commit 35b04d1
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/content/pages/problems/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,6 @@ async function load() {

parent.prepend(root)
}

const monacoEditor = await findElement('.monaco-editor')
if (monacoEditor) {
monacoEditor.addEventListener('keydown', handlePreventSave)
}
} else {
if (parent && parent instanceof HTMLElement) {
if (!root) {
Expand Down

0 comments on commit 35b04d1

Please sign in to comment.