Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
fohristiwhirl committed Oct 21, 2018
1 parent d6baa7d commit f672ba2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,15 +150,15 @@ function start_watcher(dir) {
let watcher = fs.watch(dir, {persistent: false}, (eventType, filename) => {
if (is_replay_file(filename)) {
windows.send("renderer", "log", `${eventType} - ${filename}`);
if (process.platform == "darwin") {
if (process.platform === "darwin") {
// fs.watch on OS X sends all events as "rename". It's the second
// rename event that actually means the file is written.
if (eventType == "rename" && darwin_last_filename == filename) {
if (eventType === "rename" && darwin_last_filename === filename) {
windows.send("renderer", "open_silent_fail", path.join(dir, filename));
}
darwin_last_filename = filename;
} else {
if (eventType == "change") {
if (eventType === "change") {
windows.send("renderer", "open_silent_fail", path.join(dir, filename));
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Fluorine",
"description": "Replay viewer for Halite 3",
"version": "1.1.9",
"version": "1.2.0",
"author": "Fohristiwhirl",
"repository": {
"type": "git",
Expand Down

0 comments on commit f672ba2

Please sign in to comment.