diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2023-06-01 23:01:44 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2023-06-01 23:01:44 +0300 |
commit | c178d4320999bf884f4c3ed2841d115d7f31e75c (patch) | |
tree | ade10836133e0c89077353c6290b09d7409a9636 /localwebsite/templates-web/header.twig | |
parent | 8e8979ff4c98c4172fce13346ff95ffe89ca5f15 (diff) |
lws: set window.onerror
Diffstat (limited to 'localwebsite/templates-web/header.twig')
-rw-r--r-- | localwebsite/templates-web/header.twig | 5 |
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> |