From c663ded98fd089f9ee253df4aa373df32eac3093 Mon Sep 17 00:00:00 2001
From: AkiraFukushima
Date: Sun, 27 May 2018 22:05:29 +0900
Subject: [PATCH] refs #327 Allow drop file to upload files
---
src/main/index.js | 2 ++
.../TimelineSpace/Modals/NewToot.vue | 36 ++++++++++++++++---
2 files changed, 33 insertions(+), 5 deletions(-)
diff --git a/src/main/index.js b/src/main/index.js
index e06087f7..15b55124 100644
--- a/src/main/index.js
+++ b/src/main/index.js
@@ -213,6 +213,8 @@ function createWindow () {
mainWindow.loadURL(winURL)
+ mainWindow.webContents.on('will-navigate', (event) => event.preventDefault())
+
mainWindow.on('closed', () => {
mainWindow = null
})
diff --git a/src/renderer/components/TimelineSpace/Modals/NewToot.vue b/src/renderer/components/TimelineSpace/Modals/NewToot.vue
index 54080f85..7f98b2c7 100644
--- a/src/renderer/components/TimelineSpace/Modals/NewToot.vue
+++ b/src/renderer/components/TimelineSpace/Modals/NewToot.vue
@@ -21,7 +21,7 @@