From 28ab9fe15072532ba53d5071a3d7a66d86204de4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Katarzyna=20Kr=C3=B3l?= Date: Wed, 15 Jan 2020 02:03:50 +0100 Subject: [PATCH] remove counting changes in title --- modules/ui/tools/save.js | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/modules/ui/tools/save.js b/modules/ui/tools/save.js index 2e7526bc4..e6d62dbe8 100644 --- a/modules/ui/tools/save.js +++ b/modules/ui/tools/save.js @@ -51,28 +51,10 @@ export function uiToolSave(context) { } } - function updateTitle(val) { - var oldTitle = document.title; - var endIndex = oldTitle.indexOf(')'); - var oldIDStr = oldTitle.substring(0, endIndex+1); - var newIDStr = 'iD (' + val.toString() + ')'; - if (val === 0) { - oldTitle = oldTitle.replace(oldIDStr, 'iD'); - } - else if (_numChanges !== 0){ - oldTitle = oldTitle.replace(oldIDStr, newIDStr); - } - else { - oldTitle = oldTitle.replace('iD', newIDStr); - } - document.title = oldTitle; - } - function updateCount() { var val = history.difference().summary().length; if (val === _numChanges) return; - updateTitle(val); _numChanges = val;