🐛 Fix the issue of not being able to drag and drop files.

This commit is contained in:
Tw93
2023-06-04 12:37:41 +08:00
parent c1c862f29f
commit e70b29468a
4 changed files with 31 additions and 30 deletions

View File

@@ -1,7 +1,7 @@
{
"windows": [
{
"url": "https://chat.openai.com",
"url": "https://weread.qq.com/",
"transparent": true,
"fullscreen": false,
"width": 1200,

View File

@@ -26,6 +26,7 @@ pub fn get_window(app: &mut App, config: PakeConfig, _data_dir: PathBuf) -> Wind
.resizable(window_config.resizable)
.fullscreen(window_config.fullscreen)
.inner_size(window_config.width, window_config.height)
.disable_file_drop_handler() //Very annoying, otherwise dragging files to the window will not work.
.initialization_script(include_str!("../inject/style.js"))
.initialization_script(include_str!("../inject/event.js"))
.initialization_script(include_str!("../inject/component.js"));