From 346441a4e00d817e136172b6e822e06d6114f557 Mon Sep 17 00:00:00 2001 From: Raunak Raj <71929976+bajrangCoder@users.noreply.github.com> Date: Sat, 6 Jun 2026 16:05:04 +0530 Subject: [PATCH] fix: preview SAF single-file documents --- src/lib/commands.js | 2 +- src/lib/run.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(),