remove this.cookieString attribute
This commit is contained in:
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
||||
this.site = metadata.sourceSite;
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.options = metadata.options;
|
||||
this.filters = metadata.filters;
|
||||
}
|
||||
|
||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
||||
this.site = metadata.sourceSite;
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.options = metadata.options;
|
||||
this.filters = metadata.filters;
|
||||
}
|
||||
|
||||
@@ -47,7 +47,6 @@ var LSHNovel = /** @class */ (function () {
|
||||
this.site = "https://lshnovel.com/";
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.filters = {
|
||||
order: {
|
||||
value: "popular",
|
||||
@@ -144,9 +143,6 @@ var LSHNovel = /** @class */ (function () {
|
||||
link += "&status=" + filters.status;
|
||||
link += "&order=" + filters.order;
|
||||
headers = new Headers();
|
||||
if (this.cookieString) {
|
||||
headers.append("cookie", this.cookieString);
|
||||
}
|
||||
return [4 /*yield*/, (0, fetch_1.fetchApi)(link, { headers: headers }).then(function (result) {
|
||||
return result.text();
|
||||
})];
|
||||
@@ -181,9 +177,6 @@ var LSHNovel = /** @class */ (function () {
|
||||
case 0:
|
||||
url = novelUrl;
|
||||
headers = new Headers();
|
||||
if (this.cookieString) {
|
||||
headers.append("cookie", this.cookieString);
|
||||
}
|
||||
return [4 /*yield*/, (0, fetch_1.fetchApi)(url, { headers: headers })];
|
||||
case 1:
|
||||
result = _a.sent();
|
||||
@@ -259,9 +252,6 @@ var LSHNovel = /** @class */ (function () {
|
||||
switch (_a.label) {
|
||||
case 0:
|
||||
headers = new Headers();
|
||||
if (this.cookieString) {
|
||||
headers.append("cookie", this.cookieString);
|
||||
}
|
||||
return [4 /*yield*/, (0, fetch_1.fetchApi)(chapterUrl, { headers: headers })];
|
||||
case 1:
|
||||
result = _a.sent();
|
||||
@@ -283,9 +273,6 @@ var LSHNovel = /** @class */ (function () {
|
||||
case 0:
|
||||
url = "".concat(this.site, "?s=").concat(searchTerm);
|
||||
headers = new Headers();
|
||||
if (this.cookieString) {
|
||||
headers.append("cookie", this.cookieString);
|
||||
}
|
||||
return [4 /*yield*/, (0, fetch_1.fetchApi)(url, { headers: headers })];
|
||||
case 1:
|
||||
result = _a.sent();
|
||||
|
||||
Reference in New Issue
Block a user