mirror of https://github.com/GooseMod/OpenAsar
[BuildInfo] Inline require
parent
8260503b42
commit
c829a9135b
@ -1,5 +1,2 @@
|
||||
// Use JSON parse for vaguely more security-ish
|
||||
const fs = require('fs');
|
||||
const { join } = require('path');
|
||||
|
||||
module.exports = JSON.parse(fs.readFileSync(join(process.resourcesPath, 'build_info.json'), 'utf8'));
|
||||
module.exports = JSON.parse(require('fs').readFileSync(require('path').join(process.resourcesPath, 'build_info.json'), 'utf8'));
|
Loading…
Reference in new issue