Skip to content

Commit

Permalink
Fix autowho when compiled
Browse files Browse the repository at this point in the history
  • Loading branch information
AnotherPillow committed Dec 30, 2022
1 parent 2f3235f commit 29c93b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const configPath = path.join(app.getPath('userData'), 'config.json');
if (!fs.existsSync(configPath))
fs.writeFileSync(configPath, JSON.stringify({api_key:''}));

const vbsCWD = app.isPackaged ? path.join(process.resourcesPath, 'app.asar.unpacked', 'src') : path.join(__dirname, 'SRC');
const vbsCWD = app.isPackaged ? path.join(process.resourcesPath, 'src') : path.join(__dirname, 'SRC');

let config = require(configPath);
if (!config.autowho) config.autowho = true;
Expand Down
2 changes: 1 addition & 1 deletion renderer/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ const handleFont = (font) => {
document.getElementById("user-table").classList.add(font);
resize();
}
const resize = (extra=25) => {
const resize = (extra=30) => {
const bodyHeight = document.body.getBoundingClientRect()
api.send("resize", {height : bodyHeight.height + extra})
}
Expand Down

0 comments on commit 29c93b9

Please sign in to comment.