Skip to content

Commit 6eef661

Browse files
Merge branch 'main' into capacitor
2 parents e4cddcc + 51efbb7 commit 6eef661

File tree

4 files changed

+14
-8
lines changed

4 files changed

+14
-8
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,4 +117,4 @@
117117
"yargs": "^17.7.2"
118118
},
119119
"browserslist": "cover 100%,not android < 5"
120-
}
120+
}

src/lib/logger.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,10 @@ class Logger {
100100
await fsOperation(logFilePath).writeFile(newData);
101101
}
102102
} catch (error) {
103-
console.error("Error in handling fs operation on log file. Error:", error);
103+
console.error(
104+
"Error in handling fs operation on log file. Error:",
105+
error,
106+
);
104107
}
105108
};
106109

src/lib/run.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -316,11 +316,15 @@ async function run(
316316

317317
default:
318318
if (file && file.loaded && file.isUnsaved) {
319-
sendText(
320-
file.session.getValue(),
321-
reqId,
322-
mimeType.lookup(file.filename),
323-
);
319+
if (filename.endsWith(".html")) {
320+
sendHTML(file.session.getValue(), reqId);
321+
} else {
322+
sendText(
323+
file.session.getValue(),
324+
reqId,
325+
mimeType.lookup(file.filename),
326+
);
327+
}
324328
} else if (url) {
325329
if (reqPath === "favicon.ico") {
326330
sendIco(ASSETS_DIRECTORY, reqId);

www/index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,6 @@
164164
<script src="./js/build/main.build.js"></script>
165165

166166
<title>Acode</title>
167-
168167
<!--styles-->
169168
<link rel="stylesheet" href="./css/build/about.css">
170169
<link rel="stylesheet" href="./css/build/customTheme.css">

0 commit comments

Comments
 (0)