Skip to content

Commit 689695d

Browse files
committed
Fix string quotation style
1 parent 16d66e4 commit 689695d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/application.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class Application extends events.EventEmitter {
100100
try {
101101
const code = await fsp.readFile(fileName, 'utf8');
102102
if (!code) return null;
103-
const src = "'use strict';\ncontext => " + code;
103+
const src = '\'use strict\';\ncontext => ' + code;
104104
const options = { filename: fileName, lineOffset: -1 };
105105
const script = new vm.Script(src, options);
106106
return script.runInContext(this.sandbox, SCRIPT_OPTIONS);

lib/channel.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ const HEADERS = {
2020
'Access-Control-Allow-Methods': 'POST, GET, OPTIONS',
2121
'Access-Control-Allow-Headers': 'Content-Type',
2222
'Content-Security-Policy': [
23-
`default-src 'self' ws:`,
24-
`style-src 'self' https://fonts.googleapis.com`,
25-
`font-src 'self' https://fonts.gstatic.com`,
23+
'default-src \'self\' ws:',
24+
'style-src \'self\' https://fonts.googleapis.com',
25+
'font-src \'self\' https://fonts.gstatic.com',
2626
].join('; '),
2727
};
2828

0 commit comments

Comments
 (0)