Created
January 30, 2024 21:41
-
-
Save lamrongol/b3941613a49fdb7d26128434ff8c6f90 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chrome.windows.getAll({populate: true, windowTypes: ['normal']}, (windows) => { | |
const tabId = windows[0].tabs[0].id; | |
chrome.debugger.attach({ tabId: tabId }, '1.2', () => { | |
chrome.debugger.sendCommand( | |
{ tabId: tabId }, | |
'Browser.close' | |
); | |
}); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment