docs: Update positioner readme (#1072)

This commit is contained in:
DK Liao authored and GitHub committed 2024-03-13 10:36:59 +01:00
1 parent a3b5396113
commit 14c858391d
1 file changed
+2 -2
+2 -2
View File
@@ -73,9 +73,9 @@ fn main() {
Afterwards all the plugin's APIs are available through the JavaScript guest bindings: Afterwards all the plugin's APIs are available through the JavaScript guest bindings:
```javascript ```javascript
import { move_window, Position } from "@tauri-apps/plugin-positioner"; import { moveWindow, Position } from "@tauri-apps/plugin-positioner";
move_window(Position.TopRight); moveWindow(Position.TopRight);
``` ```
If you only intend on moving the window from rust code, you can import the Window trait extension instead of registering the plugin: If you only intend on moving the window from rust code, you can import the Window trait extension instead of registering the plugin: