mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Fix not getting iframe src
This commit is contained in:
parent
82fb8151a4
commit
2755da16a9
1 changed files with 2 additions and 2 deletions
|
|
@ -2260,8 +2260,8 @@ Readability.prototype = {
|
|||
}
|
||||
|
||||
// Create instagram posts placeholders from iframes
|
||||
if (element.src && element.src.includes('instagram.com/p')) {
|
||||
const url = element.src;
|
||||
if (element.getAttribute('src')?.includes('instagram.com/p')) {
|
||||
const url = element.getAttribute('src');
|
||||
const regex = /https?:\/\/(www\.)?instagram.com\/p\/(\w+)\//gm;
|
||||
const match = regex.exec(url);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue