abdulazizali77/sloooop

When the user is not logged in and enables the extension, sometimes extension setup fails

abdulazizali77 opened this issue · 1 comments

When the use is not logged in, the auth flow will forward to a login page first
before the client authorization.
chrome-extension://coidlglmibkdkmnedmgblamammmnjdon/contentscript.bundle.js:27664 Uncaught (in promise) TypeError: Failed to execute 'observe' on 'MutationObserver': parameter 1 is not of type 'Node'. at observePlaybackPosition (chrome-extension://coidlglmibkdkmnedmgblamammmnjdon/contentscript.bundle.js:27664) at setupObservers (chrome-extension://coidlglmibkdkmnedmgblamammmnjdon/contentscript.bundle.js:27676) at chrome-extension://coidlglmibkdkmnedmgblamammmnjdon/contentscript.bundle.js:27973

aa94bbd

Aside from a race issue, unsure what mightve caused the elements not being available given that the DOM shouldve have finished loading anyways. But checking and retrying the observer seems like an acceptable solution for now.
There could be an issue if it retries observing indefinitely