vytal-redux/src/utils/detachDebugger.js
2022-05-06 13:28:24 -04:00

11 lines
264 B
JavaScript

const detachDebugger = () => {
chrome.debugger.getTargets((tabs) => {
for (const tab in tabs) {
if (tabs[tab].attached && tabs[tab].tabId) {
chrome.debugger.detach({ tabId: tabs[tab].tabId })
}
}
})
}
export default detachDebugger