Skip to content

Commit 35b04d1

Browse files
committed
fix(problems): 官方已经阻止了新版答题页中保存页面的弹窗
1 parent 378bcd8 commit 35b04d1

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

src/content/pages/problems/index.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,6 @@ async function load() {
4747

4848
parent.prepend(root)
4949
}
50-
51-
const monacoEditor = await findElement('.monaco-editor')
52-
if (monacoEditor) {
53-
monacoEditor.addEventListener('keydown', handlePreventSave)
54-
}
5550
} else {
5651
if (parent && parent instanceof HTMLElement) {
5752
if (!root) {

0 commit comments

Comments
 (0)