mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-09-26 21:41:48 +02:00
docs: update README.md and remove allowlist information (#381)
This commit is contained in:
@@ -5,51 +5,6 @@
|
||||
/**
|
||||
* Provides APIs to create windows, communicate with other windows and manipulate the current window.
|
||||
*
|
||||
* The APIs must be added to [`tauri.allowlist.window`](https://tauri.app/v1/api/config/#allowlistconfig.window) in `tauri.conf.json`:
|
||||
* ```json
|
||||
* {
|
||||
* "tauri": {
|
||||
* "allowlist": {
|
||||
* "window": {
|
||||
* "all": true, // enable all window APIs
|
||||
* "create": true, // enable window creation
|
||||
* "center": true,
|
||||
* "requestUserAttention": true,
|
||||
* "setResizable": true,
|
||||
* "setTitle": true,
|
||||
* "maximize": true,
|
||||
* "unmaximize": true,
|
||||
* "minimize": true,
|
||||
* "unminimize": true,
|
||||
* "show": true,
|
||||
* "hide": true,
|
||||
* "close": true,
|
||||
* "setDecorations": true,
|
||||
* "setShadow": true,
|
||||
* "setAlwaysOnTop": true,
|
||||
* "setContentProtected": true,
|
||||
* "setSize": true,
|
||||
* "setMinSize": true,
|
||||
* "setMaxSize": true,
|
||||
* "setPosition": true,
|
||||
* "setFullscreen": true,
|
||||
* "setFocus": true,
|
||||
* "setIcon": true,
|
||||
* "setSkipTaskbar": true,
|
||||
* "setCursorGrab": true,
|
||||
* "setCursorVisible": true,
|
||||
* "setCursorIcon": true,
|
||||
* "setCursorPosition": true,
|
||||
* "setIgnoreCursorEvents": true,
|
||||
* "startDragging": true,
|
||||
* "print": true
|
||||
* }
|
||||
* }
|
||||
* }
|
||||
* }
|
||||
* ```
|
||||
* It is recommended to allowlist only the APIs you use for optimal bundle size and security.
|
||||
*
|
||||
* ## Window events
|
||||
*
|
||||
* Events can be listened to using `appWindow.listen`:
|
||||
|
||||
Reference in New Issue
Block a user