Answer the question
In order to leave comments, you need to log in
How to close desired tab(url) in chrome extension?
How to make it so that when installing the extension, a certain open tab (yurl) closes?
Answer the question
In order to leave comments, you need to log in
chrome.runtime.onInstalled.addListener(() => {
chrome.tabs.query({
url: '' //тут нужный URL
}, Tabs => {
Tabs.forEach(Tab => {
chrome.tabs.remove(Tab.id);
});
});
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question