Add remote server name to page title / tab

Makes selecting one of several servers easier.
This commit is contained in:
Dave C-J 2014-11-07 12:28:19 +00:00
parent b861f490c6
commit 5c5de028da
1 changed files with 6 additions and 2 deletions

View File

@ -321,6 +321,10 @@ var RED = (function() {
RED.comms.connect();
});
if ((window.location.hostname !== "localhost") && (window.location.hostname !== "127.0.0.1")) {
document.title = "Node-RED : "+window.location.hostname;
}
return {
};
})();