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 @@