Files
Ghom 291dcf9515 Merge pull request #10575 from Arturlang/TGUIs_Nexties
[TESTMERGE] Properly working TGUI Next
2021-01-04 19:47:54 -03:00

13 lines
276 B
JavaScript

import { tridentVersion } from './byond';
export const refocusLayout = () => {
// IE8: Focus method is seemingly fucked.
if (tridentVersion <= 4) {
return;
}
const element = document.getElementById('Layout__content');
if (element) {
element.focus();
}
};