From 5f5385d4dd0d1e660b08fab03b89fc458865bb4e Mon Sep 17 00:00:00 2001 From: nl6720 Date: Tue, 10 Dec 2019 12:43:36 +0200 Subject: [PATCH] Fix quoting of alert() in client.js Fix alert() I broke in #11615 . --- src/webui/www/private/scripts/client.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/webui/www/private/scripts/client.js b/src/webui/www/private/scripts/client.js index 5aae7b2cb..ecc2f3958 100644 --- a/src/webui/www/private/scripts/client.js +++ b/src/webui/www/private/scripts/client.js @@ -968,9 +968,9 @@ window.addEvent('load', function() { function registerMagnetHandler() { if (typeof navigator.registerProtocolHandler !== 'function') { if (window.location.protocol !== 'https:') - alert(QBT_TR("To use this feature, the WebUI needs to be accessed over HTTPS")QBT_TR[CONTEXT=MainWindow]); + alert("QBT_TR(To use this feature, the WebUI needs to be accessed over HTTPS)QBT_TR[CONTEXT=MainWindow]"); else - alert(QBT_TR("Your browser does not support this feature")QBT_TR[CONTEXT=MainWindow]); + alert("QBT_TR(Your browser does not support this feature)QBT_TR[CONTEXT=MainWindow]"); return; }