Skip to content

Commit 69682a4

Browse files
fix(getWindowId): add 'context.ekoConfig.workingWindowId' as fallback (#160)
1 parent 41a3c7e commit 69682a4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/extension/utils.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ export async function getWindowId(context: ExecutionContext): Promise<number> {
3030
if (!windowId) {
3131
windowId = (window as any).FELLOU_WINDOW_ID;
3232
}
33+
if (!windowId) {
34+
windowId = context.ekoConfig.workingWindowId;
35+
}
3336

3437
if (!windowId) {
3538
logger.warn("`getWindowId()` returns " + windowId);

0 commit comments

Comments
 (0)