function afterNavigate() {
    	doesElementExist = document.getElementById('stereoFixer'); //grabs stereoFixer Element from html if it exists


  if ('/watch' === location.pathname) {


    	if(doesElementExist === null && '/watch' === location.pathname){ //if stereoFixer is not found the element is added, this prevents from multi elements being added
        console.log('afterNavigateElemNotFound');
      addElement();
  }


    }
}
//Note- this fixes the element not being added sometimes, this works about 90% of the time, but randomly fails to add the element for whatever reason - switched to setTimeout() for fix

Note- this fixes the element not being added sometimes, this works about 90% of the time, but randomly fails to add the element for whatever reason - switched to setTimeout() for fix
Note - this fixes the element not being added sometimes this works about 90% of the time but randomly fails to add the element for whatever reason - switched to setTimeout () for fix
function afterNavigate() {
    	doesElementExist = document.getElementById('stereoFixer'); 
  if ('/watch' === location.pathname) {
    	if(doesElementExist === null && '/watch' === location.pathname){ 
        console.log('afterNavigateElemNotFound');
      addElement();
  }
    }
}
function afterNavigate ( ) { doesElementExist = document . getElementById ( 'stereoFixer' ) ; if ( '/watch' === location . pathname ) { if ( doesElementExist === null && '/watch' === location . pathname ) { console . log ( 'afterNavigateElemNotFound' ) ; addElement ( ) ; } } }
Note- this fixes the element not being added sometimes, this works about 90% of the time, but randomly fails to add the element for whatever reason - switched to setTimeout() for fix
Note - this fixes the element not being added sometimes this works about 90% of the time but randomly fails to add the element for whatever reason - switched to setTimeout () for fix
//grabs stereoFixer Element from html if it exists
 //if stereoFixer is not found the element is added, this prevents from multi elements being added
