Skip to content

Commit 2cb997e

Browse files
fix. html preview on unsaved files (#1354)
1 parent 65248ba commit 2cb997e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/lib/run.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ async function run(
374374

375375
default:
376376
if (file && file.loaded && file.isUnsaved) {
377-
if (filename.endsWith(".html")) {
377+
if (file.filename.endsWith(".html")) {
378378
sendHTML(file.session.getValue(), reqId);
379379
} else {
380380
sendText(

www/index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,17 +165,17 @@
165165

166166
<title>Acode</title>
167167
<!--styles-->
168-
<link rel="stylesheet" href="./css/build/263.css">
169-
<link rel="stylesheet" href="./css/build/31.css">
170-
<link rel="stylesheet" href="./css/build/439.css">
171-
<link rel="stylesheet" href="./css/build/490.css">
172-
<link rel="stylesheet" href="./css/build/626.css">
173168
<link rel="stylesheet" href="./css/build/about.css">
174169
<link rel="stylesheet" href="./css/build/customTheme.css">
175170
<link rel="stylesheet" href="./css/build/donate.css">
176171
<link rel="stylesheet" href="./css/build/fileBrowser.css">
177172
<link rel="stylesheet" href="./css/build/main.css">
178173
<link rel="stylesheet" href="./css/build/plugins.css">
174+
<link rel="stylesheet" href="./css/build/src_pages_quickTools_quickTools_js.css">
175+
<link rel="stylesheet" href="./css/build/src_sidebarApps_extensions_index_js.css">
176+
<link rel="stylesheet" href="./css/build/src_sidebarApps_files_index_js.css">
177+
<link rel="stylesheet" href="./css/build/src_sidebarApps_notification_index_js.css">
178+
<link rel="stylesheet" href="./css/build/src_sidebarApps_searchInFiles_index_js.css">
179179
<link rel="stylesheet" href="./css/build/themeSetting.css">
180180
<!--styles_end-->
181181
</head>

0 commit comments

Comments
 (0)