scrapes from all open tabs.
This commit is contained in:
1 parent
4a39065d90
commit
65fa2bddad
5 files changed
+141
-82
No files matched your search
@@ -5,6 +5,7 @@
|
||||
|
||||
const params = new URLSearchParams(location.search);
|
||||
const id = params.get('id');
|
||||
const tags = params.get('tags') ? JSON.parse(params.get('tags')) : [];
|
||||
const panelsEl = document.getElementById('panels');
|
||||
|
||||
// Fetch stored video URLs and render panels
|
||||
@@ -43,6 +44,14 @@ async function init() {
|
||||
video.playsInline = true;
|
||||
console.log('[goon-viewer] panel', i + '/4:', videoUrls[i]);
|
||||
panel.appendChild(video);
|
||||
|
||||
// Add tab label if available
|
||||
if (tags[i]) {
|
||||
const label = document.createElement('div');
|
||||
label.className = 'panel-label';
|
||||
label.textContent = tags[i];
|
||||
panel.appendChild(label);
|
||||
}
|
||||
} else {
|
||||
panel.classList.add('empty');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user