Merge pull request #24 from olegvodyanov/use_iframe
All checks were successful
continuous-integration/drone/push Build is passing

use_iframe
This commit is contained in:
Олег Водянов 2025-04-23 13:37:46 +04:00 committed by GitHub
commit 849d3edd84
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7,6 +7,12 @@ const PER_PAGE = 8;
let currentPage = 1; let currentPage = 1;
let linksData = []; 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() { function loadLinks() {
const cacheKey = `links_cache_page_${currentPage}_per_${PER_PAGE}`; const cacheKey = `links_cache_page_${currentPage}_per_${PER_PAGE}`;
const cached = localStorage.getItem(cacheKey); const cached = localStorage.getItem(cacheKey);