Only ask for permission once

This commit is contained in:
Ajay Ramachandran
2021-05-12 17:00:31 -04:00
parent dc5ecaded4
commit 11144fa77b
3 changed files with 5 additions and 1 deletions

View File

@@ -22,6 +22,8 @@ async function init() {
if (granted) {
alert(chrome.i18n.getMessage("permissionRequestSuccess"));
Config.config.ytInfoPermissionGranted = true;
chrome.tabs.getCurrent((tab) => {
chrome.tabs.remove(tab.id);
});