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": { "installUpdateFromLabel": {
"message": "Install update from $url$", "message": "Check for updates",
"description": "Label for the checkbox to save current URL for update check", "description": "Label for the checkbox to save current URL for update check"
"placeholders": {
"url": {
"content": "$1"
}
}
}, },
"license": { "license": {
"message": "License", "message": "License",

View File

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