Skip to content

Commit 80462bf

Browse files
committed
Updated window title
1 parent 3fa343e commit 80462bf

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

js/command.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ var command = {
105105
command.ws = null;
106106

107107
if (command.num_ws_tries == 10) {
108-
document.title = 'mapperGUI: error connecting to server after 10 tries';
108+
document.title = 'webmapper: error connecting to server after 10 tries';
109109
// setTimeout(function(){
110-
//// document.title = 'mapperGUI (connecting...)';
110+
//// document.title = 'webmapper (connecting...)';
111111
// }, 10000);
112112
command.num_ws_tries ++;
113113
return;
@@ -129,7 +129,7 @@ var command = {
129129
if (!command.ws) {
130130
if (console)
131131
console.log("Couldn't create web socket.");
132-
document.title = 'mapperGUI: connection to server unavailable';
132+
document.title = 'webmapper: connection to server unavailable';
133133
return;
134134
}
135135
command.ws.is_closed = false;
@@ -138,22 +138,22 @@ var command = {
138138
if (console)
139139
console.log("websocket opened");
140140
command.ws.is_opened = true;
141-
document.title = 'mapperGUI: connected to server';
141+
document.title = 'webmapper: connected to server';
142142
}
143143
command.ws.onmessage = function(e) {
144144
command.json_handler(e.data);
145145
}
146146
command.ws.onerror = function(e) {
147147
if (console)
148148
console.log('websocket error: ' + e.data);
149-
document.title = 'mapperGUI: error connecting to server' + e.data;
149+
document.title = 'webmapper: error connecting to server' + e.data;
150150
}
151151
command.ws.onclose = function(e) {
152152
if (console)
153153
console.log("websocket closed");
154154
command.ws.is_closed = true;
155155
command.ws.is_opened = false;
156-
document.title = 'mapperGUI: connection to server closed';
156+
document.title = 'webmapper: connection to server closed';
157157
}
158158
}
159159
};

0 commit comments

Comments
 (0)