Unsubscribe from channel when redirecting
fixes CODEOCEAN-FRONTEND-2S
This commit is contained in:

committed by
Sebastian Serth

parent
23a95d315d
commit
0e4a239960
@ -204,6 +204,7 @@ CodeOceanEditorSubmissions = {
|
||||
this.teardownEventHandlers();
|
||||
this.createSubmission(button, null, function (response) {
|
||||
if (response.redirect) {
|
||||
App.synchronized_editor?.unsubscribe();
|
||||
this.autosaveIfChanged();
|
||||
this.stopCode(event);
|
||||
this.editors = [];
|
||||
|
Reference in New Issue
Block a user