mirror of
https://github.com/olegvodyanov/instalinks.git
synced 2025-12-20 06:47:05 +03:00
Merge pull request #24 from olegvodyanov/use_iframe
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
use_iframe
This commit is contained in:
commit
849d3edd84
@ -7,6 +7,12 @@ const PER_PAGE = 8;
|
||||
let currentPage = 1;
|
||||
let linksData = [];
|
||||
|
||||
function extractReelId(url) {
|
||||
// Example: https://www.instagram.com/reel/ABC123xyz/
|
||||
const match = url.match(/instagram\.com\/reel\/([a-zA-Z0-9_-]+)/);
|
||||
return match ? match[1] : null;
|
||||
}
|
||||
|
||||
function loadLinks() {
|
||||
const cacheKey = `links_cache_page_${currentPage}_per_${PER_PAGE}`;
|
||||
const cached = localStorage.getItem(cacheKey);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user