From 680ce0cf56afab99b0dfcce45b2f26b7b188ec87 Mon Sep 17 00:00:00 2001 From: Miala <65893041+Miala-python@users.noreply.github.com> Date: Fri, 25 Oct 2024 14:12:54 +0200 Subject: [PATCH] csl.log => pb? 4.164-181 --- loop.js | 5 +++-- pl_load.js | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) 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;