Skip to content
This repository has been archived by the owner on Sep 8, 2021. It is now read-only.

Commit

Permalink
Fix view log on MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
1nikolas committed Dec 22, 2020
1 parent 34aafbc commit d60b459
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,12 @@ const createWindow = () => {
if (result.response === 1) {
require('electron').shell.openExternal("https://github.com/1nikolas/tidal-lyrics/");
} else if (result.response === 2) {
require('electron').shell.openExternal(logPath)
if (process.platform == "win32") {
require('electron').shell.openExternal(logPath)
} else if (process.platform == "darwin") {
exec("open -t " + logPath)
}

}
})

Expand Down

0 comments on commit d60b459

Please sign in to comment.