Enforce single quotes
This commit is contained in:
@@ -32,7 +32,7 @@ function getRouter(opts: ReloaderConfig): Router {
|
||||
if (!DefaultConfig.isProduction) {
|
||||
let uuid = v4();
|
||||
let updateTimeout: Timeout|undefined = undefined;
|
||||
import("node-watch").then((watch) => {
|
||||
import('node-watch').then((watch) => {
|
||||
for (const frontendDir of config.frontendDirs) {
|
||||
watch.default(frontendDir, {recursive: true}, () => {
|
||||
if (updateTimeout !== undefined) clearTimeout(updateTimeout);
|
||||
@@ -46,7 +46,7 @@ function getRouter(opts: ReloaderConfig): Router {
|
||||
// /auto-reload/client.js
|
||||
router.get(urlJoin(config.subPath, config.jsName), (req, res) => {
|
||||
Logger.debug(req.url, req.originalUrl, req.baseUrl);
|
||||
res.setHeader('Content-Type', "application/javascript");
|
||||
res.setHeader('Content-Type', 'application/javascript');
|
||||
// language=JavaScript
|
||||
res.send(`
|
||||
const loc = window.location;
|
||||
@@ -76,7 +76,7 @@ function getRouter(opts: ReloaderConfig): Router {
|
||||
}
|
||||
}
|
||||
}, 3000);
|
||||
`.replace(/\t/g, ""));
|
||||
`.replace(/\t/g, ''));
|
||||
});
|
||||
|
||||
// /auto-reload
|
||||
|
||||
Reference in New Issue
Block a user