mirror of
https://github.com/janeczku/calibre-web
synced 2025-10-27 13:28:04 +00:00
Disable bookmarking when anonymous users are reading
This commit is contained in:
@@ -10,8 +10,13 @@
|
||||
restore: true,
|
||||
bookmarks: calibre.bookmark ? [calibre.bookmark] : []
|
||||
});
|
||||
reader.on("reader:bookmarked", updateBookmark.bind(reader, "add"));
|
||||
reader.on("reader:unbookmarked", updateBookmark.bind(reader, "remove"));
|
||||
|
||||
if (calibre.useBookmarks) {
|
||||
reader.on("reader:bookmarked", updateBookmark.bind(reader, "add"));
|
||||
reader.on("reader:unbookmarked", updateBookmark.bind(reader, "remove"));
|
||||
} else {
|
||||
$("#bookmark, #show-Bookmarks").remove();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} action - Add or remove bookmark
|
||||
|
||||
Reference in New Issue
Block a user