Formatting the title

This commit is contained in:
Dunith Dhanushka 2017-01-17 11:14:58 +05:30 committed by GitHub
parent c1de144bcf
commit c6437c3065

View File

@ -54,7 +54,7 @@ function setPageTitle() {
var deviceInfoString = hash.substring(startIdx,lastIdx); var deviceInfoString = hash.substring(startIdx,lastIdx);
var deviceInfo = JSON.parse(deviceInfoString); var deviceInfo = JSON.parse(deviceInfoString);
if(deviceInfo) { if(deviceInfo) {
var newTitle = " Geo Dashboard - Device ID: " + deviceInfo.device.id + " Type: " + deviceInfo.device.type; var newTitle = "[ " + deviceInfo.device.id + "]" + " - Geo Dashboard [" + deviceInfo.device.type + "]";
window.parent.document.title = newTitle; window.parent.document.title = newTitle;
} }
} }