mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-27 03:39:39 +03:00
Close document properly after writing
Closing document explicitly is recommended by MDN: https://developer.mozilla.org/en-US/docs/Web/API/Document/write
This commit is contained in:
parent
d5a4ebe7c9
commit
45bd79ee74
1 changed files with 1 additions and 0 deletions
|
@ -934,6 +934,7 @@ const initializeWindows = function() {
|
|||
url: 'api/v2/app/shutdown',
|
||||
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.close();
|
||||
stop();
|
||||
}
|
||||
}).send();
|
||||
|
|
Loading…
Reference in a new issue