diff --git a/loop.js b/loop.js index c9814f9..81677c9 100644 --- a/loop.js +++ b/loop.js @@ -76,9 +76,10 @@ function changeVideo(nid, pgs_rest = true) { } catch (error) { } pl_view_active = id; - // Known ERR: loop.js:81 TypeError: Cannot read properties of null (reading 'classList') at changeVideo (loop.js:78:61) + // Known ERR: loop.js:81 TypeError: Cannot read properties of null (reading 'classList') at changeVideo (loop.js:78:61) // => just stop try... - console.log('Try add dark bg to article with id:'+id); + // console.log('Try add dark bg to article with id:'+id); //-> Return ID 0 + // => Need set first ID for first time ... document.getElementById('pl_view_article_' + id).classList.add('has-background-grey-dark'); } diff --git a/pl_load.js b/pl_load.js index ae8d10e..887a4c0 100644 --- a/pl_load.js +++ b/pl_load.js @@ -161,6 +161,7 @@ function waitLib() { if (lcl_pl_id != -1) { lcl_REPRISE = $SCANNED ? confirm("Reprendre où vous en étiez ?\nOK = Oui | Annuler = Non") : false; } else { + console.log('INFO : First time visit this PL => No ask "reprise" #164-52'); lcl_pl_id = list_pl_id.length; } if (lcl_REPRISE) { @@ -177,9 +178,8 @@ function waitLib() { lcl_save_IN_list('watch_id', 0, lcl_pl_id); } - - - + }else{ + console.log('ERROR Loading : No LOCAL_STORAGE #181-54'); } let list_length = playlist.length;