1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2025-06-05 21:49:31 +02:00

Updated i18n in dialog

This commit is contained in:
nobody
2020-08-09 11:01:33 +02:00
parent 500f00c969
commit 3e48d1e007
36 changed files with 142 additions and 1 deletions

View File

@@ -183,7 +183,8 @@ statistics._handlerDateRange = function ({ target }) {
};
statistics._deleteStatistic = function () {
if (confirm('Are you sure you want to delete the statistics?')) {
let text = chrome.i18n.getMessage("dialogConfirmDeleteStatistics");
if (confirm(text)) {
chrome.storage.local.set({
[Setting.INTERNAL_STATISTICS_DATA]: {},
});