Adam Outler bfbf3172e3
Fix crash on unload (#136)
* Fix crash on unload

Within main, exists a `window.beforeunload` handler which brings up the "Are you sure you want to close PiKVM session?" message.   When the page is refreshed, the event is `undefined` and, the code which sets the `event.returnValue` to the aforementioned text provides an exception.  

To reproduce:
1. Open KVMD web
2. Open developer tools to view Console.
3. Interact with the page by clicking the main window.
4. Refresh the page
5. Observe type error in console. 

This patch checks if the event is defined before attempting to set the `event.returnValue`.  Other functions are maintained.

* Add space
2023-05-27 18:08:57 +03:00
2022-09-23 19:05:20 +03:00
2021-06-17 18:40:53 +03:00
2023-05-27 12:41:22 +03:00
2023-05-27 12:44:24 +03:00
2023-05-27 12:41:22 +03:00
2023-05-27 12:41:22 +03:00
2023-05-27 18:08:57 +03:00
2023-05-27 12:44:24 +03:00
2021-07-27 04:16:53 +03:00
2021-07-25 04:22:27 +03:00
2023-05-27 12:41:22 +03:00
2023-01-22 23:03:23 +02:00
2018-09-26 02:57:24 +03:00
2023-01-23 03:17:46 +02:00
2023-05-27 12:44:24 +03:00
fix
2021-09-24 07:07:45 +03:00
2023-05-27 12:44:24 +03:00

KVMD

CI Discord

This repository contains the configuration and code of KVMD, the main PiKVM daemon. If your request does not relate directly to this codebase, please send it to issues of the PiKVM repository.

Description
One-KVM 是基于廉价计算机硬件和 PiKVM 软件二次开发的 BIOS 级远程控制项目。
Readme GPL-3.0 29 MiB
Languages
Python 54.1%
JavaScript 20.6%
Shell 5.7%
HTML 5.4%
C 4.5%
Other 9.6%