Browse Source

Merge pull request #11615 from nl6720/webui-magnet-warning

Mention HTTPS in WebUI magnet link warning
adaptive-webui-19844
Mike Tzou 5 years ago committed by GitHub
parent
commit
5e83574de1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      src/webui/www/private/scripts/client.js

5
src/webui/www/private/scripts/client.js

@ -967,7 +967,10 @@ window.addEvent('load', function() {
function registerMagnetHandler() { function registerMagnetHandler() {
if (typeof navigator.registerProtocolHandler !== 'function') { 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; return;
} }

Loading…
Cancel
Save