fix(api.js): add fileDropEnabled to WindowOptions, closes #2968 (#2989)

This commit is contained in:
Amr Bashir
2021-12-09 06:03:21 +02:00
committed by GitHub
parent 875c35e6e4
commit 1bfc32a3b2
2 changed files with 11 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
---
"api": patch
---
Add `fileDropEnabled` property to `WindowOptions` so you can now disable it when creating windows from js.

View File

@@ -1185,6 +1185,12 @@ interface WindowOptions {
alwaysOnTop?: boolean
/** Whether or not the window icon should be added to the taskbar. */
skipTaskbar?: boolean
/**
* Whether the file drop is enabled or not on the webview. By default it is enabled.
*
* Disabling it is required to use drag and drop on the frontend on Windows.
*/
fileDropEnabled?: boolean
}
/**