Skip to content

Commit

Permalink
work for #7857
Browse files Browse the repository at this point in the history
  • Loading branch information
OlgaLarina committed Mar 11, 2024
1 parent 9d4c904 commit adf481e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/global_variables_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ export class DomWindowHelper {
}
public static addEventListener(type: string, listener: (e?: any) => void): void {
if(!DomWindowHelper.isAvailable()) return;
document.addEventListener(type, listener);
window.addEventListener(type, listener);
}
public static removeEventListener(type: string, listener: (e?: any) => void): void {
if(!DomWindowHelper.isAvailable()) return;
document.removeEventListener(type, listener);
window.removeEventListener(type, listener);
}
}

Expand Down

0 comments on commit adf481e

Please sign in to comment.