mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Fix warnings
This commit is contained in:
parent
9206230659
commit
e660e41ed5
3 changed files with 3 additions and 0 deletions
|
|
@ -3,6 +3,7 @@ import { DOMWindow } from 'jsdom'
|
|||
export class AxiosHandler {
|
||||
name = 'axios'
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
shouldPrehandle = (url: URL, _dom: DOMWindow): boolean => {
|
||||
const host = this.name + '.com'
|
||||
// check if url ends with axios.com
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ import { DOMWindow } from 'jsdom'
|
|||
export class GolangHandler {
|
||||
name = 'golangweekly'
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
shouldPrehandle = (url: URL, _dom: DOMWindow): boolean => {
|
||||
const host = this.name + '.com'
|
||||
// check if url ends with golangweekly.com
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ import { DOMWindow } from 'jsdom'
|
|||
export class WikipediaHandler {
|
||||
name = 'wikipedia'
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
shouldPrehandle = (url: URL, _dom: DOMWindow): boolean => {
|
||||
return url.hostname.endsWith('wikipedia.org')
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue