|
@@ -64,6 +64,9 @@ let enableCustomWallpapers =
|
|
|
|
|
|
//bookmarks
|
|
|
let bookmarks = JSON.parse(localStorage.getItem("text-startpage:bookmarks"));
|
|
|
+let enableBookmarks = JSON.parse(
|
|
|
+ localStorage.getItem("text-startpage:enableBookmarks")
|
|
|
+);
|
|
|
if (!bookmarks) {
|
|
|
const xhr = new XMLHttpRequest();
|
|
|
xhr.open("GET", "json/defaultBookmarks.json");
|
|
@@ -87,13 +90,13 @@ if (!bookmarks) {
|
|
|
};
|
|
|
}
|
|
|
|
|
|
-/* TODO: unscrew the screwup / add disable bookmarks
|
|
|
-if (bookmarks == "") {
|
|
|
+// remove bookmarks box (including quotes) if disabled
|
|
|
+if (enableBookmarks == false) {
|
|
|
document.body.removeChild(document.getElementById("bookmarks-container"));
|
|
|
- document.getElementById("search-container").style.top = "50vh";
|
|
|
+ /* document.getElementById("search-container").style.top = "50vh";
|
|
|
document.getElementById("search-container").style.transform =
|
|
|
- "translate(-50%, -50%)";
|
|
|
-} */
|
|
|
+ "translate(-50%, -50%)"; */
|
|
|
+}
|
|
|
|
|
|
//set the theme
|
|
|
if (localStorage.getItem("text-startpage:theme") == "custom") {
|