We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0461274 + c78624d commit 60e484fCopy full SHA for 60e484f
src-electron/traverseFolder.ts
@@ -84,11 +84,11 @@ function traverseFolderObjects (currentPath) {
84
srcThumb: 'atom://' + filePath
85
});
86
picMetaMap.set(filePath, picLinks.length - 1);
87
- const dimensions = sizeOf(filePath);
88
- // console.log(dimensions.width, dimensions.height);
89
- // console.log(filePath);
90
- picLinks[picMetaMap.get(filePath)].height = dimensions.height;
91
- picLinks[picMetaMap.get(filePath)].width = dimensions.width;
+ try{
+ const dimensions = sizeOf(filePath);
+ picLinks[picMetaMap.get(filePath)].height = dimensions.height;
+ picLinks[picMetaMap.get(filePath)].width = dimensions.width;
+ }catch (err) {}
92
// console.log(picLinks[picMetaMap.get(filePath)]);
93
94
// 异步方案,有问题
0 commit comments