kopia lustrzana https://github.com/badgen/badgen.net
Fix auto run
rodzic
80db1b6093
commit
85cb44f375
2
index.ts
2
index.ts
|
@ -20,7 +20,7 @@ module.exports = http.createServer(async (req, res) => {
|
|||
}
|
||||
})
|
||||
|
||||
if (require.main) {
|
||||
if (require.main === module) {
|
||||
module.exports.listen(3000)
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue