Skip to content

TagSpaces is an offline, open source, document manager with tagging support

fixing issues with first run

uggrock7c8b3763745e
diff --git a/data/chromelight/popup.js b/data/chromelight/popup.js
index 703e2ffc1..0caf30ff4 100644
--- a/data/chromelight/popup.js
+++ b/data/chromelight/popup.js
@@ -17,9 +17,6 @@
});
var tagList = extractAllTags(tagLibrary);
- if(tagList == undefined) {
- tagList = [];
- }
loadSettingsLocalStorage();
@@ -167,6 +164,9 @@
function extractAllTags() {
var allTags = [];
+ if(tagLibrary === undefined) {
+ return allTags;
+ }
for(var i=0; i < tagLibrary.length; i++) {
for(var j=0; j < tagLibrary[i].children.length; j++) {
if(tagLibrary[i].children[j].type === "plain") {