mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-22 16:19:48 +02:00
fix titles - single quotes
This commit is contained in:
@@ -53,17 +53,17 @@ export function uiToolSave(context) {
|
||||
|
||||
function updateTitle(val) {
|
||||
var oldTitle = document.title;
|
||||
var endIndex = oldTitle.indexOf(")");
|
||||
var endIndex = oldTitle.indexOf(')');
|
||||
var oldIDStr = oldTitle.substring(0, endIndex+1);
|
||||
var newIDStr = "iD (" + val.toString() + ")";
|
||||
if(val === 0) {
|
||||
oldTitle = oldTitle.replace(oldIDStr, "iD");
|
||||
var newIDStr = 'iD (' + val.toString() + ')';
|
||||
if (val === 0) {
|
||||
oldTitle = oldTitle.replace(oldIDStr, 'iD');
|
||||
}
|
||||
else if(_numChanges !== 0){
|
||||
else if (_numChanges !== 0){
|
||||
oldTitle = oldTitle.replace(oldIDStr, newIDStr);
|
||||
}
|
||||
else {
|
||||
oldTitle = oldTitle.replace("iD", newIDStr);
|
||||
oldTitle = oldTitle.replace('iD', newIDStr);
|
||||
}
|
||||
document.title = oldTitle;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user