bookmark-stack

web extension to save pages in a stack for reading them later  https://addons.mozilla.org/firefox/addon/bookmark-stack/
git clone https://git.ce9e.org/bookmark-stack.git

commit
b63d1d352c85a7729b01d01d189157dd75d5e771
parent
0598c50d6f8af83ec2ddf58629b4a5f29c29ef75
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2025-04-24 06:59
chrome: fix root folder detection

Diffstat

M shared.js 7 +++----

1 files changed, 3 insertions, 4 deletions


diff --git a/shared.js b/shared.js

@@ -3,11 +3,10 @@
    3     3 const FOLDER_TITLE = 'stack';
    4     4 
    5     5 var getRootFolder = async function() {
    6    -1 	// try firefox
    7    -1 	var folder = await chrome.bookmarks.get('unfiled_____');
    8    -1 	if (!chrome.runtime.lastError) {
   -1     6 	try {
   -1     7 		var folder = await chrome.bookmarks.get('unfiled_____');
    9     8 		return folder[0];
   10    -1 	} else {
   -1     9 	} catch {
   11    10 		// In chrome, it the folders are indexed depth-first.
   12    11 		// So root is 0, "bookmark bar" is 1, "other bookmarks" is 2.
   13    12 		// However, if you already had bookmarks when ids were introduced,