mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-01-06 15:04:34 +08:00
Merge pull request #11615 from nl6720/webui-magnet-warning
Mention HTTPS in WebUI magnet link warning
This commit is contained in:
commit
5e83574de1
@ -967,7 +967,10 @@ window.addEvent('load', function() {
|
||||
|
||||
function registerMagnetHandler() {
|
||||
if (typeof navigator.registerProtocolHandler !== 'function') {
|
||||
alert("Your browser does not support this feature");
|
||||
if (window.location.protocol !== 'https:')
|
||||
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]);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user