mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-23 08:48:07 -06:00
Merge pull request #12011 from Chocobo1/webui
Close document properly after writing
This commit is contained in:
@@ -934,6 +934,7 @@ const initializeWindows = function() {
|
|||||||
url: 'api/v2/app/shutdown',
|
url: 'api/v2/app/shutdown',
|
||||||
onSuccess: function() {
|
onSuccess: function() {
|
||||||
document.write('<!doctype html><html lang="${LANG}"><head> <meta charset="utf-8"> <title>QBT_TR(qBittorrent has been shutdown)QBT_TR[CONTEXT=HttpServer]</title></head><body> <h1 style="text-align: center;">QBT_TR(qBittorrent has been shutdown)QBT_TR[CONTEXT=HttpServer]</h1></body></html>');
|
document.write('<!doctype html><html lang="${LANG}"><head> <meta charset="utf-8"> <title>QBT_TR(qBittorrent has been shutdown)QBT_TR[CONTEXT=HttpServer]</title></head><body> <h1 style="text-align: center;">QBT_TR(qBittorrent has been shutdown)QBT_TR[CONTEXT=HttpServer]</h1></body></html>');
|
||||||
|
document.close();
|
||||||
stop();
|
stop();
|
||||||
}
|
}
|
||||||
}).send();
|
}).send();
|
||||||
|
|||||||
Reference in New Issue
Block a user