skip build download button if empty

This commit is contained in:
simon 2022-04-03 22:38:25 +07:00
parent 9f91991432
commit 1c4d476f36
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
1 changed files with 3 additions and 1 deletions

View File

@ -134,7 +134,9 @@ document.addEventListener("DOMContentLoaded", async () => {
});
browserType.storage.local.get("youtube", function(result) {
downlodButton(result);
if (result.youtube) {
downlodButton(result);
}
})
})