Changes for page Linkding + SingleFile Archief
Last modified by XWikiGuest on 2026/03/11 21:04
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -172,7 +172,7 @@ 172 172 173 173 // Debug test button 174 174 document.getElementById('ldsf-test-btn').addEventListener('click', function() { 175 - alert('archiveMap: ' + JSON.stringify(ldsf_archiveMap)+ '\nurlToFile: ' + JSON.stringify(ldsf_urlToFile));175 + alert('Klik werkt! archiveMap keys: ' + Object.keys(ldsf_archiveMap).join(',')); 176 176 }); 177 177 178 178 // Load index then bookmarks ... ... @@ -179,11 +179,10 @@ 179 179 fetch(LDSF_WEBDAV + 'index.json', { headers: { 'Authorization': LDSF_AUTH } }) 180 180 .then(function(r) { return r.ok ? r.json() : {}; }) 181 181 .then(function(idx) { 182 - console.log('SingleFile index loaded:', idx); 183 183 Object.keys(idx).forEach(function(f) { ldsf_urlToFile[idx[f]] = f; }); 184 184 ldsfLoadBookmarks(); 185 185 }) 186 -.catch(function( err) {console.log('SingleFile index FAILED:', err); ldsfLoadBookmarks(); });185 +.catch(function() { ldsfLoadBookmarks(); }); 187 187 </script> 188 188 {{/html}} 189 189