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

Commit

Permalink
Handle show-warning-dialog event on app
Browse files Browse the repository at this point in the history
requires brave/muon#196

fix #8846

Auditors: @bridiver, @bbondy

Test Plan:
1. Open Firefox
2. Open Brave and import from Firefox
3. There will be a warning window
  • Loading branch information
darkdh authored and bsclifton committed May 16, 2017
1 parent af2908d commit e01b081
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/importer.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
'strict mode'

const electron = require('electron')
const app = electron.app
const importer = electron.importer
const dialog = electron.dialog
const BrowserWindow = electron.BrowserWindow
Expand Down Expand Up @@ -235,7 +236,7 @@ const showImportSuccess = function () {
}
}

importer.on('show-warning-dialog', (e) => {
app.on('show-warning-dialog', (e) => {
showImportWarning()
})

Expand Down

0 comments on commit e01b081

Please sign in to comment.