From 0ac836d4a610fa9cf2d0ddb64476755591b11f20 Mon Sep 17 00:00:00 2001 From: SmAsHeD <6071159+smashedr@users.noreply.github.com> Date: Thu, 16 May 2024 18:57:51 -0700 Subject: [PATCH] Fix Bookmarks (#13) --- manifest.json | 2 +- src/js/popup.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index e2fa4d4..4f5b770 100644 --- a/manifest.json +++ b/manifest.json @@ -3,7 +3,7 @@ "description": "Aviation Quick Search and Lookup Tools.", "homepage_url": "https://github.com/cssnr/aviation-tools", "author": "Shane", - "version": "0.1.4", + "version": "0.1.5", "manifest_version": 3, "commands": { "_execute_action": { diff --git a/src/js/popup.js b/src/js/popup.js index cd00e41..834fdfc 100644 --- a/src/js/popup.js +++ b/src/js/popup.js @@ -57,6 +57,10 @@ async function initPopup() { for (const [key, value] of Object.entries(searchLinks)) { // console.debug(`${key}: ${value}`) const ul = document.getElementById(key) + if (!ul) { + console.debug('skipping:', key) + continue + } for (const [name, url] of Object.entries(value)) { // console.debug(`${name}: ${url}`) createSearchLink(ul, url, name)