Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Fixed local file opening
Browse files Browse the repository at this point in the history
Fixes ##5828

Auditors: @bsclifton @echosa

Test Plan:
- Build brave
- Open local file with brave (double click)
- Local file should be opened
  • Loading branch information
NejcZdovc authored and bsclifton committed Jan 24, 2017
1 parent 70f8496 commit 87f11e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/cmdLine.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ app.on('will-finish-launching', () => {
// User clicked on a file or dragged a file to the dock on macOS
app.on('open-file', (event, path) => {
event.preventDefault()
path = encodeURI(path)
if (!focusOrOpenWindow(path)) {
newWindowURL = path
}
Expand Down

0 comments on commit 87f11e7

Please sign in to comment.