mirror of
https://github.com/imputnet/cobalt.git
synced 2025-07-18 19:28:29 +00:00
fix: remove debug logging
This commit is contained in:
parent
fe9a472bed
commit
a311e52957
@ -60,7 +60,6 @@ async function getStory(pathname) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export default async function(obj) {
|
export default async function(obj) {
|
||||||
try {
|
|
||||||
let pathname;
|
let pathname;
|
||||||
if (obj.url.hostname === 't.snapchat.com' && obj.shortLink) {
|
if (obj.url.hostname === 't.snapchat.com' && obj.shortLink) {
|
||||||
const link = await getRedirectingURL(`https://t.snapchat.com/${obj.shortLink}`);
|
const link = await getRedirectingURL(`https://t.snapchat.com/${obj.shortLink}`);
|
||||||
@ -86,9 +85,5 @@ export default async function(obj) {
|
|||||||
if (result) return result;
|
if (result) return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (e) {
|
|
||||||
console.log(e)
|
|
||||||
}
|
|
||||||
|
|
||||||
return { error: 'ErrorCouldntFetch' };
|
return { error: 'ErrorCouldntFetch' };
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user