Remove anchor replacement in active_file.filename

Previously, this replacement was required, but it is no longer (since we are not using some form of direct user-input).
This commit is contained in:
Sebastian Serth
2023-12-22 00:43:30 +01:00
committed by Sebastian Serth
parent 21e0784af5
commit 6d62dfc3de

View File

@ -66,7 +66,7 @@ var CodeOceanEditor = {
event.preventDefault();
const initiator = $(event.target.closest("button"));
let message = initiator.data('message-confirm');
message = message.replace('%{filename}', CodeOceanEditor.active_file.filename.replace(/#$/, ''))
message = message.replace('%{filename}', CodeOceanEditor.active_file.filename)
if (confirm(message)) {
this.resetCode(initiator, true); // delete only active file
}