This commit is contained in:
Simon Vieille 2018-10-21 00:39:28 +02:00
parent f09dd04627
commit 8c900de458
Signed by: deblan
GPG key ID: 03383D15A1D31745

10
main.js
View file

@ -1,5 +1,5 @@
try { window.addEventListener('load', function() {
(function() { try {
var inputs = document.querySelectorAll('input[type="text"], input[autofocus], input[placeholder]'); var inputs = document.querySelectorAll('input[type="text"], input[autofocus], input[placeholder]');
var inputsLength = inputs.length; var inputsLength = inputs.length;
@ -8,7 +8,7 @@ try {
} }
var profile = document.querySelector('.profile'); var profile = document.querySelector('.profile');
if (profile) { if (profile) {
var currentTab = profile.querySelector('.menu a.item.active'); var currentTab = profile.querySelector('.menu a.item.active');
@ -36,5 +36,5 @@ try {
window.clearInterval(stylusInterval); window.clearInterval(stylusInterval);
} }
}, 100); }, 100);
})(); } catch (e) {}
} catch(e) {} });