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