From 5464f4809f1975694fff39f3ac905fc673fc560d Mon Sep 17 00:00:00 2001 From: jbwfu <75001777+jbwfu@users.noreply.github.com> Date: Tue, 12 Nov 2024 09:53:56 +0800 Subject: [PATCH] Update plugin-sync-configuration-webdav.js use Plugins.useEnvStore() --- plugins/Generic/plugin-sync-configuration-webdav.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Generic/plugin-sync-configuration-webdav.js b/plugins/Generic/plugin-sync-configuration-webdav.js index 4c54dcd..15b72a9 100644 --- a/plugins/Generic/plugin-sync-configuration-webdav.js +++ b/plugins/Generic/plugin-sync-configuration-webdav.js @@ -40,7 +40,7 @@ const Sync = async () => { let failed = false - const isWindows = navigator.userAgent.indexOf('Windows') !== -1 + const isWindows = Plugins.useEnvStore().env.os == 'windows' const separator = isWindows ? '\\' : '/' const _files = Object.keys(files)