From 45bd79ee74679d3721222f24db6ef9dfc060365c Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Fri, 14 Feb 2020 12:47:18 +0800 Subject: [PATCH] Close document properly after writing Closing document explicitly is recommended by MDN: https://developer.mozilla.org/en-US/docs/Web/API/Document/write --- src/webui/www/private/scripts/mocha-init.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/webui/www/private/scripts/mocha-init.js b/src/webui/www/private/scripts/mocha-init.js index 7941b2168..a49186bdc 100644 --- a/src/webui/www/private/scripts/mocha-init.js +++ b/src/webui/www/private/scripts/mocha-init.js @@ -934,6 +934,7 @@ const initializeWindows = function() { url: 'api/v2/app/shutdown', onSuccess: function() { document.write(' QBT_TR(qBittorrent has been shutdown)QBT_TR[CONTEXT=HttpServer]

QBT_TR(qBittorrent has been shutdown)QBT_TR[CONTEXT=HttpServer]

'); + document.close(); stop(); } }).send();