File tree Expand file tree Collapse file tree 4 files changed +14
-8
lines changed
Expand file tree Collapse file tree 4 files changed +14
-8
lines changed Original file line number Diff line number Diff line change 117117 "yargs" : " ^17.7.2"
118118 },
119119 "browserslist" : " cover 100%,not android < 5"
120- }
120+ }
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff line change 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 ">
You can’t perform that action at this time.
0 commit comments