Change: a simpler installUpdateFromLabel

This commit is contained in:
eight 2017-11-11 13:10:43 +08:00
parent ecc306dd1f
commit d59f24caa6
2 changed files with 3 additions and 8 deletions

View File

@ -431,13 +431,8 @@
}
},
"installUpdateFromLabel": {
"message": "Install update from $url$",
"description": "Label for the checkbox to save current URL for update check",
"placeholders": {
"url": {
"content": "$1"
}
}
"message": "Check for updates",
"description": "Label for the checkbox to save current URL for update check"
},
"license": {
"message": "License",

View File

@ -243,7 +243,7 @@
// set updateUrl
const setUpdate = $('.set-update-url input[type=checkbox]');
const updateUrl = new URL(params.get('updateUrl'));
$('.set-update-url > span').textContent = t('installUpdateFromLabel', updateUrl.href);
$('.set-update-url > span').textContent = t('installUpdateFromLabel');
if (dup && dup.updateUrl === updateUrl.href) {
setUpdate.checked = true;
// there is no way to "unset" updateUrl, you can only overwrite it.