Vanessa 2 лет назад
Родитель
Сommit
616fef6650
2 измененных файлов с 6 добавлено и 1 удалено
  1. 2 1
      app/electron/init.html
  2. 4 0
      app/pnpm-lock.yaml

+ 2 - 1
app/electron/init.html

@@ -411,8 +411,9 @@
         const path = require('path')
         const path = require('path')
         const iCloudRoot = path.join(decodeURIComponent(getSearch('home')), 'Library', 'Mobile Documents')
         const iCloudRoot = path.join(decodeURIComponent(getSearch('home')), 'Library', 'Mobile Documents')
         const allFiles = walk(iCloudRoot)
         const allFiles = walk(iCloudRoot)
+        const absPathLower = absPath.toLowerCase()
         for (const file of allFiles) {
         for (const file of allFiles) {
-            if (-1 < absPath.indexOf(file.toLowerCase())) {
+            if (-1 < absPathLower.indexOf(file.toLowerCase())) {
                 return true
                 return true
             }
             }
         }
         }

+ 4 - 0
app/pnpm-lock.yaml

@@ -1,5 +1,9 @@
 lockfileVersion: '6.0'
 lockfileVersion: '6.0'
 
 
+settings:
+  autoInstallPeers: true
+  excludeLinksFromLockfile: false
+
 dependencies:
 dependencies:
   '@electron/remote':
   '@electron/remote':
     specifier: ^2.0.9
     specifier: ^2.0.9