Browse Source

Merge pull request #12011 from Chocobo1/webui

Close document properly after writing
adaptive-webui-19844
Mike Tzou 5 years ago committed by GitHub
parent
commit
03087b72b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      src/webui/www/private/scripts/mocha-init.js

1
src/webui/www/private/scripts/mocha-init.js

@ -934,6 +934,7 @@ const initializeWindows = function() { @@ -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…
Cancel
Save