Skip to content

Commit

Permalink
__dirname
Browse files Browse the repository at this point in the history
  • Loading branch information
fohristiwhirl committed Jan 31, 2018
1 parent 5f41d9d commit cb2b069
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chlorine_renderer.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
const alert = require("./modules/alert");
const fs = require("fs");
const ipcRenderer = require("electron").ipcRenderer;
const path = require("path");
const stream = require("stream");
const zstd = require("node-zstandard");

Expand Down Expand Up @@ -124,7 +125,7 @@
renderer.measure_entity = null;

try {
renderer.message_lookups = JSON.parse(fs.readFileSync("messages.json"));
renderer.message_lookups = JSON.parse(fs.readFileSync(path.join(__dirname, "messages.json")));
} catch(err) {
renderer.message_lookups = [];
}
Expand Down

0 comments on commit cb2b069

Please sign in to comment.