Skip to content

Commit

Permalink
Silence CodeFactor warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
vimpostor committed Feb 5, 2024
1 parent 6b001e8 commit 78bc156
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions blocks/http/test/pre.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
var http = require("http");
// this requires xhr2 to be installed, please run: npm install xhr2
// see: https://github.com/emscripten-core/emscripten/issues/21158
/*global XMLHttpRequest:writable*/
XMLHttpRequest = require('xhr2');

const server = http.createServer((req, res) => {
Expand Down Expand Up @@ -44,4 +45,6 @@ var stopServer = () => {

if (process.argv.at(-1) == "start") {
startServer();
} else if (process.argv.at(-1) == "stop") {
stopServer();
}

0 comments on commit 78bc156

Please sign in to comment.