mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-05-10 10:03:43 +03:00
Fix lint
This commit is contained in:
parent
3295b246f3
commit
3e79c864ca
|
@ -32,11 +32,10 @@ function openAndCloseTab(url: string) {
|
|||
const removeTab = () => {
|
||||
chrome.windows.onFocusChanged.removeListener(removeTab);
|
||||
if (tab && tab.id) {
|
||||
chrome.tabs.remove(tab.id, async () => {
|
||||
// eslint-disable-next-line no-console
|
||||
chrome.tabs.remove(tab.id, () => {
|
||||
if (chrome.runtime.lastError) console.log(chrome.runtime.lastError);
|
||||
else if (chrome.devtools && chrome.devtools.inspectedWindow) {
|
||||
await chrome.tabs.update(chrome.devtools.inspectedWindow.tabId, {
|
||||
void chrome.tabs.update(chrome.devtools.inspectedWindow.tabId, {
|
||||
active: true,
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user