landing: add warning message handler
This commit is contained in:
parent
51e5b6dac7
commit
f580bf4958
@ -26,6 +26,13 @@ html, body {
|
|||||||
<script type="text/javascript" src="/sdk.js"></script>
|
<script type="text/javascript" src="/sdk.js"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
|
// Handle errors
|
||||||
|
window.addEventListener('error', function(message) {
|
||||||
|
alert(message);
|
||||||
|
window.location.href = window.location.href;
|
||||||
|
})
|
||||||
|
|
||||||
// Set page title
|
// Set page title
|
||||||
$.get("/about", function(ret) {
|
$.get("/about", function(ret) {
|
||||||
$("title").text(ret.AppTitle);
|
$("title").text(ret.AppTitle);
|
||||||
|
Loading…
Reference in New Issue
Block a user