mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Fix missing variable name in medium handler
This commit is contained in:
parent
394a558e45
commit
6f09a4b31a
2 changed files with 6 additions and 6 deletions
|
|
@ -22,11 +22,11 @@ exports.mediumHandler = {
|
|||
console.log('prehandling medium url', url)
|
||||
|
||||
try {
|
||||
const res = new URL('https://example.org:81/foo');
|
||||
myURL.searchParams.delete('source');
|
||||
const res = new URL(url);
|
||||
res.searchParams.delete('source');
|
||||
return { url: res }
|
||||
} catch (error) {
|
||||
console.error('error prehandling bloomberg url', error)
|
||||
console.error('error prehandling medium url', error)
|
||||
throw error
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,11 +22,11 @@ exports.mediumHandler = {
|
|||
console.log('prehandling medium url', url)
|
||||
|
||||
try {
|
||||
const res = new URL('https://example.org:81/foo');
|
||||
myURL.searchParams.delete('source');
|
||||
const res = new URL(url);
|
||||
res.searchParams.delete('source');
|
||||
return { url: res }
|
||||
} catch (error) {
|
||||
console.error('error prehandling bloomberg url', error)
|
||||
console.error('error prehandling medium url', error)
|
||||
throw error
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue