mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-08-03 02:06:05 -04:00
Library button is disabled by setupViewer()
This commit is contained in:
parent
ae01790375
commit
796e729f52
@ -267,10 +267,6 @@ function on_content_load() {
|
||||
window.onresize = handle_visual_viewport_change;
|
||||
window.onhashchange = handle_location_hash_change;
|
||||
|
||||
if ( ! viewerSettings.libraryButtonEnabled ) {
|
||||
document.getElementById("kiwix_serve_taskbar_library_button").remove();
|
||||
}
|
||||
|
||||
updateCurrentBook(currentBook);
|
||||
handle_location_hash_change();
|
||||
|
||||
@ -385,6 +381,10 @@ function setupSuggestions() {
|
||||
}
|
||||
|
||||
function setupViewer() {
|
||||
if ( ! viewerSettings.libraryButtonEnabled ) {
|
||||
document.getElementById("kiwix_serve_taskbar_library_button").remove();
|
||||
}
|
||||
|
||||
handle_visual_viewport_change();
|
||||
|
||||
setupSuggestions();
|
||||
|
Loading…
x
Reference in New Issue
Block a user