@@ -66,6 +66,7 @@ Install the store plugin to get started.
6666 />
6767
6868 </TabItem >
69+
6970</Tabs >
7071
7172## Usage
@@ -74,16 +75,16 @@ Install the store plugin to get started.
7475<TabItem label = " JavaScript" >
7576
7677``` js
77- import { Store } from " @tauri-apps/plugin-store" ;
78+ import { Store } from ' @tauri-apps/plugin-store' ;
7879
7980// Store will be loaded automatically when used in JavaScript binding.
80- const store = new Store (" store.bin" );
81+ const store = new Store (' store.bin' );
8182
8283// Set a value.
83- await store .set (" some-key" , { value: 5 });
84+ await store .set (' some-key' , { value: 5 });
8485
8586// Get a value.
86- const val = await store .get (" some-key" );
87+ const val = await store .get (' some-key' );
8788console .log (val); // { value: 5 }
8889
8990// You can manually save the store after making changes.
@@ -146,16 +147,16 @@ See [Access Control List](/references/v2/acl) for more information.
146147 "description" : " Capability for the main window" ,
147148 "windows" : [" main" ],
148149 "permissions" : [
149- " store:allow-get" ,
150- " store:allow-set" ,
151- " store:allow-save" ,
152- " store:allow-load"
153- ]
150+ " store:allow-get" ,
151+ " store:allow-set" ,
152+ " store:allow-save" ,
153+ " store:allow-load"
154+ ]
154155}
155156```
156157
157158| Permission | Description |
158- | ----------------------- | --------------------------------------------------------------- |
159+ | --------------------- | ------------------------------------------------------------- |
159160| ` store:allow-clear ` | Enables the clear command without any pre-configured scope. |
160161| ` store:deny-clear ` | Denies the clear command without any pre-configured scope. |
161162| ` store:allow-delete ` | Enables the delete command without any pre-configured scope. |
0 commit comments