Fix quoting of alert() in client.js

Fix alert() I broke in #11615 .
This commit is contained in:
nl6720 2019-12-10 12:43:36 +02:00 committed by sledgehammer999
commit 87e1c80e28
No known key found for this signature in database
GPG key ID: 6E4A2D025B7CC9A2

View file

@ -968,9 +968,9 @@ window.addEvent('load', function() {
function registerMagnetHandler() { function registerMagnetHandler() {
if (typeof navigator.registerProtocolHandler !== 'function') { if (typeof navigator.registerProtocolHandler !== 'function') {
if (window.location.protocol !== 'https:') 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 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; return;
} }