From d0ea72c6f3c20009bd0de77d33938243cdbb8f8c Mon Sep 17 00:00:00 2001 From: kodxana Date: Sun, 20 Oct 2019 00:00:55 +0200 Subject: [PATCH] Added message if video not on LBRY --- background.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/background.js b/background.js index 0d46f89..604b905 100644 --- a/background.js +++ b/background.js @@ -43,8 +43,10 @@ function validateVideo (id) { let url = "https://open.lbry.com/" + title console.log(url) chrome.tabs.update({url: url}); + } else { + chrome.windows.create({'url': 'message.html', 'type': 'popup', height: 200, width:200}); } }); -} \ No newline at end of file +}