diff --git a/src/lib/commands.js b/src/lib/commands.js index 96fa6c0d9..ec4b97a02 100644 --- a/src/lib/commands.js +++ b/src/lib/commands.js @@ -488,7 +488,7 @@ export default { async rename(file) { file = file || editorManager.activeFile; - if (file.mode === "single") { + if (file.SAFMode === "single") { alert(strings.info.toUpperCase(), strings["unable to rename"]); return; } diff --git a/src/lib/run.js b/src/lib/run.js index 866fe641d..ac1427794 100644 --- a/src/lib/run.js +++ b/src/lib/run.js @@ -241,7 +241,7 @@ async function run( } } - if (activeFile.mode === "single") { + if (activeFile.SAFMode === "single") { if (filename === reqPath) { sendText( activeFile.session?.doc?.toString(),