mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-27 23:14:31 +00:00
Merge pull request #11627 from nl6720/webui-magnet-warning-fix
Fix quoting of alert() in client.js
This commit is contained in:
commit
53183f3ab3
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user