Last modified by XWikiGuest on 2026/03/11 21:04

From version 10.1
edited by XWikiGuest
on 2026/03/11 20:44
Change comment: There is no comment for this version
To version 8.1
edited by XWikiGuest
on 2026/03/11 20:33
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -129,13 +129,8 @@
129 129  
130 130  function ldsfLoadBookmarks() {
131 131   var apiUrl = LDSF_LINKDING_URL + '?limit=' + LDSF_COUNT + '&q=%23' + encodeURIComponent(LDSF_TAG);
132 - console.log('Fetching bookmarks:', apiUrl);
133 133   fetch(apiUrl, { headers: { 'Authorization': 'Token ' + LDSF_TOKEN } })
134 - .then(function(r) {
135 - console.log('Linkding response status:', r.status, r.headers.get('content-type'));
136 - if (!r.ok) return r.text().then(function(t) { throw new Error('HTTP ' + r.status + ': ' + t.substring(0, 200)); });
137 - return r.json();
138 - })
133 + .then(function(r) { return r.json(); })
139 139   .then(function(data) {
140 140   var total = data.count || 0;
141 141   var archiveCount = 0;
... ... @@ -177,7 +177,7 @@
177 177  
178 178  // Debug test button
179 179  document.getElementById('ldsf-test-btn').addEventListener('click', function() {
180 - alert('archiveMap: ' + JSON.stringify(ldsf_archiveMap) + '\nurlToFile: ' + JSON.stringify(ldsf_urlToFile));
175 + alert('Klik werkt! archiveMap keys: ' + Object.keys(ldsf_archiveMap).join(','));
181 181  });
182 182  
183 183  // Load index then bookmarks
... ... @@ -184,11 +184,10 @@
184 184  fetch(LDSF_WEBDAV + 'index.json', { headers: { 'Authorization': LDSF_AUTH } })
185 185  .then(function(r) { return r.ok ? r.json() : {}; })
186 186  .then(function(idx) {
187 - console.log('SingleFile index loaded:', idx);
188 188   Object.keys(idx).forEach(function(f) { ldsf_urlToFile[idx[f]] = f; });
189 189   ldsfLoadBookmarks();
190 190  })
191 -.catch(function(err) { console.log('SingleFile index FAILED:', err); ldsfLoadBookmarks(); });
185 +.catch(function() { ldsfLoadBookmarks(); });
192 192  </script>
193 193  {{/html}}
194 194