Skip to content

Commit 54d1967

Browse files
committed
Refactor Japanesemanga and Onemanga constructors to set properties using super
1 parent 7a0663b commit 54d1967

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/web/mjs/connectors/Japanesemanga.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ export default class Japanesemanga extends WordPressMangastream {
44

55
constructor() {
66
super();
7-
this.id = 'japanesemanga';
8-
this.label = 'มังงะญี่ปุ่น';
7+
super.id = 'japanesemanga';
8+
super.label = 'มังงะญี่ปุ่น';
99
this.tags = [ 'webtoon', 'thai', 'manga' ];
1010
this.url = 'https://xn--72cas2cj6a4hf4b5a8oc.com';
1111
this.path = '/manga/list-mode/';

src/web/mjs/connectors/Onemanga.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ export default class Onemanga extends WordPressMangastream {
44

55
constructor() {
66
super();
7-
this.id = 'onemanga';
8-
this.label = 'One-Manga';
7+
super.id = 'onemanga';
8+
super.label = 'One-Manga';
99
this.tags = [ 'webtoon', 'thai', 'manga' ];
1010
this.url = 'https://one-manga.com/';
1111
this.path = '/manga/manga/list-mode/';

0 commit comments

Comments
 (0)