Merge pull request #186 from Safelite/feature/CSR-268-ajc

CSR-268: few small fixes
This commit is contained in:
Frank Rua 2022-02-02 14:58:14 -05:00 committed by GitHub
commit cf65f03db0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -65,6 +65,9 @@ export default {
this.$nextTick(() => {
window.addEventListener('resize', this.onResize);
})
setTimeout(function(){ // Give it a moment to set the date
document.getElementById('years').innerHTML += new Date().getFullYear();
}, 100);
},
beforeUnmount() {
window.removeEventListener('resize', this.onResize);
@ -75,7 +78,4 @@ export default {
}
}
};
setTimeout(function(){ // Give it a moment to set the date
document.getElementById('years').innerHTML += new Date().getFullYear();
}, 100);
</script>