1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 15:25:59 +00:00

cleanup some unused code, fix App.byId() invoked by wrong name

This commit is contained in:
Andrew Dolgov
2021-02-19 06:58:50 +03:00
parent dcfea9baac
commit 00310d2d23
6 changed files with 5 additions and 25 deletions

View File

@@ -355,14 +355,14 @@ class Pref_Prefs extends Handler_Protected {
Notify.close();
if (transport.responseText.indexOf('ERROR: ') == 0) {
$('pwd_change_infobox').innerHTML =
App.byId('pwd_change_infobox').innerHTML =
transport.responseText.replace('ERROR: ', '');
} else {
$('pwd_change_infobox').innerHTML =
App.byId('pwd_change_infobox').innerHTML =
transport.responseText.replace('ERROR: ', '');
const warn = $('default_pass_warning');
const warn = App.byId('default_pass_warning');
if (warn) Element.hide(warn);
}