From d87fec8501dfa1d5baeb78c68cdd19ff4be0fb81 Mon Sep 17 00:00:00 2001 From: RohitKushvaha01 Date: Sun, 8 Jun 2025 12:41:05 +0530 Subject: [PATCH] fix. html preview on unsaved files --- src/lib/run.js | 2 +- www/index.html | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/lib/run.js b/src/lib/run.js index a38a554a8..8f4621f02 100644 --- a/src/lib/run.js +++ b/src/lib/run.js @@ -374,7 +374,7 @@ async function run( default: if (file && file.loaded && file.isUnsaved) { - if (filename.endsWith(".html")) { + if (file.filename.endsWith(".html")) { sendHTML(file.session.getValue(), reqId); } else { sendText( diff --git a/www/index.html b/www/index.html index e4c0e5ec3..ae9aa7f4d 100644 --- a/www/index.html +++ b/www/index.html @@ -165,17 +165,17 @@ Acode - - - - - + + + + +