diff --git a/frontend/js/ng.js b/frontend/js/ng.js index bdddaf41..0d8a0fb1 100644 --- a/frontend/js/ng.js +++ b/frontend/js/ng.js @@ -59,6 +59,7 @@ $scope.currentMarker = null; $scope.messages = [ ]; $scope.padUrl = location.protocol + "//" + location.host + location.pathname; + $scope.error = false; socket.emit("setPadId", location.pathname.match(/[^\/]*$/)[0]); @@ -288,7 +289,7 @@ }); socket.on("disconnect", function() { - $scope.loaded = false; + $scope.error = true; $scope.showMessage("error", "The connection to the server was lost."); }) diff --git a/frontend/pad.html b/frontend/pad.html index d67f8e2b..25ac45ad 100644 --- a/frontend/pad.html +++ b/frontend/pad.html @@ -13,7 +13,7 @@ Loading...
- +