Remove year from upDate

This commit is contained in:
Ilya Ig. Petrov 2017-06-01 08:51:35 -07:00
parent 06cf186505
commit f5932cbfeb

View File

@ -228,7 +228,7 @@
setTitle() {
const upDate = new Date(this.lastPacUpdateStamp).toLocaleString('ru-RU')
.replace(/:\d+$/, '');
.replace(/:\d+$/, '').replace(/\.\d{4}/, '');
chrome.browserAction.setTitle({
title: `Обновлялись ${upDate} | Версия ${window.apis.version.build}`,
});