icx-meum-vue-common-module
Version:
icx-meum-vue-common-module
13 lines (12 loc) • 427 B
JavaScript
(function (doc, win) {
doc.getElementById('baseHref').href = __PATH__;
if (/linux/gi.test(navigator.userAgent)) {
window.addEventListener('resize', function () {
if (document.activeElement.tagName == 'INPUT' || document.activeElement.tagName == 'TEXTAREA') {
window.setTimeout(function () {
document.activeElement.scrollIntoViewIfNeeded();
}, 0);
}
})
}
})(document, window)