mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-11 14:07:13 +03:00
remove old todo
This commit is contained in:
@@ -390,8 +390,6 @@ class PreviewBar {
|
|||||||
const chapterBar = document.querySelector(".ytp-chapters-container:not(.sponsorBlockChapterBar)") as HTMLElement;
|
const chapterBar = document.querySelector(".ytp-chapters-container:not(.sponsorBlockChapterBar)") as HTMLElement;
|
||||||
if (!progressBar || !chapterBar) return;
|
if (!progressBar || !chapterBar) return;
|
||||||
|
|
||||||
// todo: Can this same mutation observer be reused to import chapters
|
|
||||||
// maybe not, looks like it has to be imported from the skipping to chapters page
|
|
||||||
const observer = new MutationObserver((mutations) => {
|
const observer = new MutationObserver((mutations) => {
|
||||||
const changes: Record<string, HTMLElement> = {};
|
const changes: Record<string, HTMLElement> = {};
|
||||||
for (const mutation of mutations) {
|
for (const mutation of mutations) {
|
||||||
|
|||||||
Reference in New Issue
Block a user