mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 17:46:00 +00:00
removed dependencies on electron remote
This commit is contained in:
@@ -19,11 +19,11 @@
|
||||
|
||||
let isLoading = false;
|
||||
|
||||
const electron = getElectron();
|
||||
const { values } = getFormContext();
|
||||
|
||||
const handleClick = async () => {
|
||||
const files = electron.remote.dialog.showOpenDialogSync(electron.remote.getCurrentWindow(), {
|
||||
const electron = getElectron();
|
||||
const files = await electron.showOpenDialog({
|
||||
properties: ['openFile', 'multiSelections'],
|
||||
filters: getFileFilters($extensions, $values.sourceStorageType),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user