From 1c4d476f36b36cc54d325ac702b716bb9bce34d2 Mon Sep 17 00:00:00 2001 From: simon Date: Sun, 3 Apr 2022 22:38:25 +0700 Subject: [PATCH] skip build download button if empty --- extension/popup.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/extension/popup.js b/extension/popup.js index ac84332..32dfa83 100644 --- a/extension/popup.js +++ b/extension/popup.js @@ -134,7 +134,9 @@ document.addEventListener("DOMContentLoaded", async () => { }); browserType.storage.local.get("youtube", function(result) { - downlodButton(result); + if (result.youtube) { + downlodButton(result); + } }) })