mirror of
https://github.com/Kuingsmile/PicList.git
synced 2025-01-23 14:48:13 -05:00
🐛 Fix: fix url encode bug when filename contains special chars
This commit is contained in:
parent
5b396ffba0
commit
a7361905f8
@ -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
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user