Skip to content

Commit 8c6dc4c

Browse files
authored
Update index.user.js
1 parent bd13f33 commit 8c6dc4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ if(location.pathname !== "/submitpage.php") return;
1212
const { editor } = unsafeWindow;
1313

1414
const editorElement = editor.textInput.getElement();
15-
const rid = document.querySelector("input#rid").value;
16-
const storageName = `editor_${rid}`;
15+
const problemNumber = document.querySelector("input#problem_id").value;
16+
const storageName = `editor_${problemNumber}`;
1717
const getSaved = () => {
1818
const saved = JSON.parse(localStorage.getItem(storageName));
1919
if(saved === null) return null;

0 commit comments

Comments
 (0)