Bladeren bron

fix: files_transfer benchmark (#3944)

Lucas Fernandes Nogueira 3 jaren geleden
bovenliggende
commit
8e00f0904c

+ 1 - 1
tooling/bench/tests/files_transfer/public/index.html

@@ -15,7 +15,7 @@
           .invoke('tauri', {
             __tauriModule: 'Fs',
             message: {
-              cmd: 'readBinaryFile',
+              cmd: 'readFile',
               path: '.tauri_3mb.json',
               options: {
                 // home folder

+ 2 - 1
tooling/bench/tests/files_transfer/src-tauri/tauri.conf.json

@@ -35,7 +35,8 @@
     "allowlist": {
       "all": false,
       "fs": {
-        "readFile": true
+        "readFile": true,
+        "scope": ["$HOME/.tauri_3mb.json"]
       }
     },
     "windows": [