landing: add warning message handler

This commit is contained in:
mappu 2017-10-08 16:27:04 +13:00
parent 51e5b6dac7
commit f580bf4958

View File

@ -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);