🐛 Fix: fix url encode bug when filename contains special chars

This commit is contained in:
萌萌哒赫萝 2023-03-25 21:39:40 +08:00
parent 5b396ffba0
commit a7361905f8
2 changed files with 1 additions and 3 deletions

View File

@ -22,8 +22,6 @@ const handleWindowParams = (windowURL: string) => {
const getDefaultWindowSizes = (): { width: number, height: number } => {
const mainWindowWidth = picgo.getConfig<any>('settings.mainWindowWidth')
const mainWindowHeight = picgo.getConfig<any>('settings.mainWindowHeight')
console.log('mainWindowWidth', mainWindowWidth)
console.log('mainWindowHeight', mainWindowHeight)
return {
width: mainWindowWidth || 1200,
height: mainWindowHeight || 800

View File

@ -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
}
}