diff --git a/src/hooks/useWindow/wrappers.ts b/src/hooks/useWindow/wrappers.ts index ec57748..c5ec880 100644 --- a/src/hooks/useWindow/wrappers.ts +++ b/src/hooks/useWindow/wrappers.ts @@ -11,7 +11,8 @@ function standardWindowBehavior( id: string, behavior: Behavior ): Promise { - return new Promise((resolve, reject) => { + return new Promise(async (resolve, reject) => { + await obtainWindow(id); overwolf.windows[behavior](id, (result) => { if (result.success) resolve(result); else reject(result);