fixes bug where popups are happening
This commit is contained in:
parent
ce51eeca8c
commit
8998e3858c
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ const ImportDialog = {
|
||||||
onFileAdded: PasteInput.handleFile,
|
onFileAdded: PasteInput.handleFile,
|
||||||
exampleImageUrl: serverData['import-example.png'],
|
exampleImageUrl: serverData['import-example.png'],
|
||||||
downloadScreenshot: ImportDialog.downloadScreenshot,
|
downloadScreenshot: ImportDialog.downloadScreenshot,
|
||||||
onExport: format => {
|
onExport: format => () => {
|
||||||
window.open(`${window.location.pathname}/export.${format}`, '_blank')
|
window.open(`${window.location.pathname}/export.${format}`, '_blank')
|
||||||
}
|
}
|
||||||
}), $('.importDialogWrapper').get(0))
|
}), $('.importDialogWrapper').get(0))
|
||||||
|
|
Loading…
Add table
Reference in a new issue