Skip to content

Commit 5847078

Browse files
committed
Fixed cose btn
1 parent 412c7f3 commit 5847078

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

script.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -180,14 +180,8 @@ function openEditor(pythonCode, problemTitle) {
180180

181181
// Close inline editor and restore original view
182182
function closeEditorInline() {
183-
// Cleanup CodeMirror
184-
if (state.codeMirrorEditor) {
185-
state.codeMirrorEditor.toTextArea();
186-
state.codeMirrorEditor = null;
187-
}
188-
189-
// Reload the problem view to restore everything
190-
renderProblem();
183+
// Simple solution: just reload the page
184+
window.location.reload();
191185
}
192186

193187
// Run Code (inline version)

0 commit comments

Comments
 (0)