We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 613326f commit 6fd8feaCopy full SHA for 6fd8fea
scripts/insta_GLOBAL.js
@@ -17,9 +17,13 @@ export function getBiggestMediaFromNode(node) {
17
}
18
19
export function getUniversalCdnUrl(cdnLink) {
20
- const cdn = new URL(cdnLink);
21
- cdn.host = "scontent.cdninstagram.com";
22
- return cdn.href;
+ try {
+ const cdn = new URL(cdnLink);
+ cdn.host = "scontent.cdninstagram.com";
23
+ return cdn.href;
24
+ } catch (e) {
25
+ return cdnLink;
26
+ }
27
28
export async function getAllMedia({ uid, progressCallback, limit = 0 }) {
29
let all_urls = [];
0 commit comments