Skip to content
This repository was archived by the owner on Jan 24, 2020. It is now read-only.

Commit 35580a9

Browse files
author
Avaer Kazmer
committed
Add focus/blur event handling
1 parent 75c7d7e commit 35580a9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

index.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,6 +1108,12 @@
11081108
uiIframe.width = window.innerWidth;
11091109
uiIframe.height = window.innerHeight;
11101110
});
1111+
window.addEventListener('focus', e => {
1112+
uiIframe.setAlwaysOnTop(true);
1113+
});
1114+
window.addEventListener('blur', e => {
1115+
uiIframe.setAlwaysOnTop(false);
1116+
});
11111117

11121118
// events
11131119

0 commit comments

Comments
 (0)