mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 05:13:30 -07:00
[WebUI] Add check to avoid type error after logout
This commit is contained in:
parent
f457937980
commit
1a45145c1e
1 changed files with 3 additions and 1 deletions
|
@ -280,7 +280,9 @@ window.addEvent('load', function () {
|
||||||
noCache : true,
|
noCache : true,
|
||||||
method : 'get',
|
method : 'get',
|
||||||
onFailure : function () {
|
onFailure : function () {
|
||||||
$('error_div').set('html', 'QBT_TR(qBittorrent client is not reachable)QBT_TR[CONTEXT=HttpServer]');
|
var errorDiv = $('error_div');
|
||||||
|
if (errorDiv)
|
||||||
|
errorDiv.set('html', 'QBT_TR(qBittorrent client is not reachable)QBT_TR[CONTEXT=HttpServer]');
|
||||||
clearTimeout(syncMainDataTimer);
|
clearTimeout(syncMainDataTimer);
|
||||||
syncMainDataTimer = syncMainData.delay(2000);
|
syncMainDataTimer = syncMainData.delay(2000);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue