mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-01-18 17:21:33 +00:00
fix: remove node: prefix in require()
this feature was only later backported to v14.18.0, meanwhile we want to support the whole v14.x version range
This commit is contained in:
parent
96522a425f
commit
14a340922c
@ -11,7 +11,7 @@ process.on('unhandledRejection', error => {
|
||||
|
||||
// Change working directory into the directory that contains lolisafe.js
|
||||
try {
|
||||
const { chdir, cwd } = require('node:process')
|
||||
const { chdir, cwd } = require('process')
|
||||
if (cwd() !== __dirname) {
|
||||
chdir(__dirname)
|
||||
logger.log(`Changed working directory to: ${__dirname}`)
|
||||
|
Loading…
Reference in New Issue
Block a user