Use currentWindow instead of WINDOW_ID_CURRENT
This commit is contained in:
parent
7185964649
commit
28e6866db8
@ -18,7 +18,6 @@ import {
|
||||
Tab,
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
MenuClickInfo,
|
||||
windows
|
||||
} from "./browser";
|
||||
import { Bus } from "./bus";
|
||||
import { filterInSitu } from "./util";
|
||||
@ -392,7 +391,7 @@ locale.then(() => {
|
||||
async enumulate(action: string) {
|
||||
const tab = await tabs.query({
|
||||
active: true,
|
||||
windowId: windows.WINDOW_ID_CURRENT
|
||||
currentWindow: true,
|
||||
});
|
||||
if (!tab || !tab.length) {
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user