summaryrefslogtreecommitdiff
path: root/core/power/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'core/power/index.html')
-rw-r--r--core/power/index.html8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/power/index.html b/core/power/index.html
index 051bd7b..9a96add 100644
--- a/core/power/index.html
+++ b/core/power/index.html
@@ -62,6 +62,14 @@
</style>
</head>
<body>
+ <script>
+ window.addEventListener('error', (event, source, lineno, colno, error) => {
+ parent.transferError(error);
+
+ return false;
+ });
+ </script>
+
<div id="options" style="display: grid; grid-template-columns: repeat(4, 1fr); grid-gap: 10px; padding: 8px 20px;">
<div onclick="askForConfirm('poweroff');" class="power-option" style="display: flex; width: 96px; align-items: center; justify-content: center;">
<div style="pointer-events: none;">