landing: add warning message handler

This commit is contained in:
mappu 2017-10-08 16:27:04 +13:00
parent 51e5b6dac7
commit f580bf4958
1 changed files with 7 additions and 0 deletions

View File

@ -26,6 +26,13 @@ html, body {
<script type="text/javascript" src="/sdk.js"></script>
<script type="text/javascript">
"use strict";
// Handle errors
window.addEventListener('error', function(message) {
alert(message);
window.location.href = window.location.href;
})
// Set page title
$.get("/about", function(ret) {
$("title").text(ret.AppTitle);