mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-09-20 21:20:42 +02:00
feat(plugins): use @tauri-apps namespace on NPM (#368)
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
This commit is contained in:
co-authored by
Amr Bashir
parent
caf8456864
commit
22991af9f4
@@ -62,7 +62,7 @@ app.save_window_state(StateFlags::all()); // will save the state of all open win
|
||||
or through Javascript
|
||||
|
||||
```javascript
|
||||
import { saveWindowState, StateFlags } from "tauri-plugin-window-state-api";
|
||||
import { saveWindowState, StateFlags } from "@tauri-apps/plugin-window-state";
|
||||
|
||||
saveWindowState(StateFlags.ALL);
|
||||
```
|
||||
@@ -79,7 +79,10 @@ window.restore_state(StateFlags::all()); // will restore the windows state from
|
||||
or through Javascript
|
||||
|
||||
```javascript
|
||||
import { restoreStateCurrent, StateFlags } from "tauri-plugin-window-state-api";
|
||||
import {
|
||||
restoreStateCurrent,
|
||||
StateFlags,
|
||||
} from "@tauri-apps/plugin-window-state";
|
||||
|
||||
restoreStateCurrent(StateFlags.ALL);
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user