fixes bug where popups are happening

This commit is contained in:
Connor Turland 2017-03-07 16:55:15 +00:00
parent ce51eeca8c
commit 8998e3858c

View file

@ -27,7 +27,7 @@ const ImportDialog = {
onFileAdded: PasteInput.handleFile,
exampleImageUrl: serverData['import-example.png'],
downloadScreenshot: ImportDialog.downloadScreenshot,
onExport: format => {
onExport: format => () => {
window.open(`${window.location.pathname}/export.${format}`, '_blank')
}
}), $('.importDialogWrapper').get(0))