mirror of https://github.com/jetkvm/kvm.git
Replace UI-state based guards (showNicknameModal, currentMode checks) with actual permission checks from PermissionsProvider. This ensures RPC calls are only made when sessions have the required permissions. Changes: - getVideoState now checks for Permission.VIDEO_VIEW - getKeyboardLedState checks for Permission.KEYBOARD_INPUT - getKeyDownState checks for Permission.KEYBOARD_INPUT - All checks wait for permissions to load (isLoadingPermissions) This prevents "Permission denied" errors that occurred when RPC calls were made before sessions received proper permissions. |
||
|---|---|---|
| .. | ||
| public | ||
| src | ||
| .env.cloud-development | ||
| .env.cloud-production | ||
| .env.cloud-staging | ||
| .gitignore | ||
| .prettierrc | ||
| dev_device.sh | ||
| eslint.config.cjs | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||
| postcss.config.js | ||
| tailwind.config.js | ||
| tsconfig.json | ||
| tsconfig.node.json | ||
| vite-env.d.ts | ||
| vite.config.ts | ||