mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 22:47:21 -06:00
[WebUI] Add check to avoid type error after logout
This commit is contained in:
committed by
sledgehammer999
parent
ade50d2b53
commit
1fa2957d27
@@ -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);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user