Enforce single quotes

This commit is contained in:
Sebastian Seedorf
2020-11-19 20:40:21 +01:00
parent 7f44df42e7
commit 40b148b7c7
18 changed files with 81 additions and 80 deletions

View File

@@ -14,7 +14,7 @@ function getRouter(opts) {
if (!_1.DefaultConfig.isProduction) {
let uuid = uuid_1.v4();
let updateTimeout = undefined;
Promise.resolve().then(() => require("node-watch")).then((watch) => {
Promise.resolve().then(() => require('node-watch')).then((watch) => {
for (const frontendDir of config.frontendDirs) {
watch.default(frontendDir, { recursive: true }, () => {
if (updateTimeout !== undefined)
@@ -28,7 +28,7 @@ function getRouter(opts) {
// /auto-reload/client.js
router.get(_1.urlJoin(config.subPath, config.jsName), (req, res) => {
_1.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;
@@ -58,7 +58,7 @@ function getRouter(opts) {
}
}
}, 3000);
`.replace(/\t/g, ""));
`.replace(/\t/g, ''));
});
// /auto-reload
router.get(_1.urlJoin(config.subPath), (req, res) => {