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

Handle show-warning-dialog event on app #8864

Merged
merged 1 commit into from
May 16, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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