Merge pull request #11627 from nl6720/webui-magnet-warning-fix

Fix quoting of alert() in client.js
This commit is contained in:
Mike Tzou 2019-12-10 20:00:35 +08:00 committed by GitHub
commit 53183f3ab3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}