Skip to content

Commit 0f7d367

Browse files
dreyfus92tauri-bot
authored andcommitted
[ci] format
1 parent 183e93f commit 0f7d367

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

src/content/docs/features/store.mdx

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -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');
8788
console.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

Comments
 (0)