[BuildInfo] Inline require
This commit is contained in:
parent
8260503b42
commit
c829a9135b
1 changed files with 1 additions and 4 deletions
|
@ -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 a new issue