Skip to content

Fix: пустая Side Panel у Chrome-расширения YouTube - #2

Open
PaperPit wants to merge 3 commits into
mainfrom
cursor/fix-sidepanel-blank-8cec
Open

Fix: пустая Side Panel у Chrome-расширения YouTube#2
PaperPit wants to merge 3 commits into
mainfrom
cursor/fix-sidepanel-blank-8cec

Conversation

@PaperPit

Copy link
Copy Markdown
Owner

Что сделано

Side Panel открывалась, но оставалась пустой: скрипт либо не грузился как ES module из ../dist/, либо падал до первого рендера (в т.ч. из‑за chrome.storage.session).

Исправление:

  • sidepanel.js собирается как IIFE рядом с HTML (extension/sidepanel/sidepanel.js)
  • состояние видео в chrome.storage.local
  • ошибки boot показываются в панели
  • версия расширения 1.0.1

Связанный Issue

нет (регрессия после #1)

Test plan

  • npm run ext:build
  • Chrome → Reload unpacked → кнопка «Карточки» → в панели виден экран «Войти через КАР-точки» или форма
  • Правый клик в панели → Inspect → нет ошибок в Console

Чеклист

  • Diff минимальный
  • SW/precache не затронуты
Open in Web Open in Cursor 

cursoragent and others added 3 commits July 25, 2026 03:11
Load sidepanel.js as a classic IIFE next to the HTML, keep video state
in chrome.storage.local, and surface boot errors in the panel instead of
failing silently before the first paint.

Co-authored-by: PaperPit <PaperPit@users.noreply.github.com>
Object.entries(null) threw before first paint; coerce attrs to {}.

Co-authored-by: PaperPit <PaperPit@users.noreply.github.com>
Removes remaining el(tag, null, ...) call sites that crashed Object.entries
before first paint when an older build was still loaded.

Co-authored-by: PaperPit <PaperPit@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants