Эх сурвалжийг харах

docs: Be more specific about plugin names in ipc scope (#7605)

Fabian-Lars 2 жил өмнө
parent
commit
9308dee0a1

+ 1 - 1
core/tauri-config-schema/schema.json

@@ -2782,7 +2782,7 @@
           }
         },
         "plugins": {
-          "description": "The list of plugins that are allowed in this scope.",
+          "description": "The list of plugins that are allowed in this scope. The names should be without the `tauri-plugin-` prefix, for example `\"store\"` for `tauri-plugin-store`.",
           "default": [],
           "type": "array",
           "items": {

+ 1 - 0
core/tauri-utils/src/config.rs

@@ -1248,6 +1248,7 @@ pub struct RemoteDomainAccessScope {
   /// The list of window labels this scope applies to.
   pub windows: Vec<String>,
   /// The list of plugins that are allowed in this scope.
+  /// The names should be without the `tauri-plugin-` prefix, for example `"store"` for `tauri-plugin-store`.
   #[serde(default)]
   pub plugins: Vec<String>,
   /// Enables access to the Tauri API.

+ 1 - 1
tooling/cli/schema.json

@@ -2782,7 +2782,7 @@
           }
         },
         "plugins": {
-          "description": "The list of plugins that are allowed in this scope.",
+          "description": "The list of plugins that are allowed in this scope. The names should be without the `tauri-plugin-` prefix, for example `\"store\"` for `tauri-plugin-store`.",
           "default": [],
           "type": "array",
           "items": {