aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main_background.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/main_background.js b/main_background.js
index 51f8145..82f3453 100644
--- a/main_background.js
+++ b/main_background.js
@@ -625,7 +625,8 @@ function validateLicense(matches) {
}
// Match by link on first parameter (legacy)
if (licenses[key]["Magnet link"] === first.replace("&","&") ||
- licenses[key]["URL"] === first.replace("&","&")) {
+ licenses[key]["URL"] === first.replace("&","&") ||
+ licenses[key]["URL"].replace("http://", "https://") === first.replace("&","&")) {
return [true, `Recognized license: "${licenses[key]['Name']}".`];
}
}