From a7361905f80cdbf36f5694777c998cf71a318cc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=8C=E8=90=8C=E5=93=92=E8=B5=AB=E8=90=9D?= Date: Sat, 25 Mar 2023 21:39:40 +0800 Subject: [PATCH] :bug: Fix: fix url encode bug when filename contains special chars --- src/main/apis/app/window/windowList.ts | 2 -- src/universal/utils/common.ts | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/apis/app/window/windowList.ts b/src/main/apis/app/window/windowList.ts index 5f33ea6..d3aa9ae 100644 --- a/src/main/apis/app/window/windowList.ts +++ b/src/main/apis/app/window/windowList.ts @@ -22,8 +22,6 @@ const handleWindowParams = (windowURL: string) => { const getDefaultWindowSizes = (): { width: number, height: number } => { const mainWindowWidth = picgo.getConfig('settings.mainWindowWidth') const mainWindowHeight = picgo.getConfig('settings.mainWindowHeight') - console.log('mainWindowWidth', mainWindowWidth) - console.log('mainWindowHeight', mainWindowHeight) return { width: mainWindowWidth || 1200, height: mainWindowHeight || 800 diff --git a/src/universal/utils/common.ts b/src/universal/utils/common.ts index aaf8586..3c279e2 100644 --- a/src/universal/utils/common.ts +++ b/src/universal/utils/common.ts @@ -12,7 +12,7 @@ export const isUrlEncode = (url: string): boolean => { return url !== decodeURI(url) } catch (e) { // if some error caught, try to let it go - return true + return false } }