fix: remove user agent (#695)
This commit is contained in:
@@ -49,7 +49,6 @@ var ReadwnPlugin = /** @class */ (function () {
|
||||
this.icon = "multisrc/readwn/icons/".concat(iconFileName, ".png");
|
||||
this.site = metadata.sourceSite;
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.filters = metadata.filters;
|
||||
}
|
||||
ReadwnPlugin.prototype.popularNovels = function (pageNo, _a) {
|
||||
@@ -179,8 +178,7 @@ var ReadwnPlugin = /** @class */ (function () {
|
||||
"Content-Type": "application/x-www-form-urlencoded",
|
||||
Referer: this.site + "/search.html",
|
||||
Origin: this.site,
|
||||
"user-agent": this.userAgent ||
|
||||
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36",
|
||||
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36",
|
||||
},
|
||||
method: "POST",
|
||||
body: JSON.stringify({
|
||||
|
||||
Reference in New Issue
Block a user