summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2023-06-01 23:01:44 +0300
committerEvgeny Zinoviev <me@ch1p.io>2023-06-01 23:01:44 +0300
commitc178d4320999bf884f4c3ed2841d115d7f31e75c (patch)
treeade10836133e0c89077353c6290b09d7409a9636
parent8e8979ff4c98c4172fce13346ff95ffe89ca5f15 (diff)
lws: set window.onerror
-rw-r--r--localwebsite/templates-web/header.twig5
1 files changed, 5 insertions, 0 deletions
diff --git a/localwebsite/templates-web/header.twig b/localwebsite/templates-web/header.twig
index 03560b0..1a866e1 100644
--- a/localwebsite/templates-web/header.twig
+++ b/localwebsite/templates-web/header.twig
@@ -4,6 +4,11 @@
<title>{{ title }}</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
+ <script>
+ window.onerror = function(error) {
+ window.console && console.error(error);
+ }
+ </script>
{{ static|raw }}
</head>
<body>