[BuildInfo] Tweak source
This commit is contained in:
parent
9e18a106cf
commit
91f0784b00
1 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
// Discord uses require but we'll use JSON parse for vaguely more security-ish
|
// Use JSON parse for vaguely more security-ish
|
||||||
const { readFileSync } = require('fs');
|
const fs = require('fs');
|
||||||
const { join } = require('path');
|
const { join } = require('path');
|
||||||
|
|
||||||
module.exports = JSON.parse(readFileSync(join(process.resourcesPath, 'build_info.json'), 'utf8'));
|
module.exports = JSON.parse(fs.readFileSync(join(process.resourcesPath, 'build_info.json'), 'utf8'));
|
Loading…
Reference in a new issue