Merge pull request #484 from Safelite/feature/CSR-563
CSR-563 | Fix console error with mixin function
This commit is contained in:
commit
6fb9e23242
2 changed files with 3 additions and 2 deletions
|
|
@ -84,7 +84,7 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
onResize() {
|
||||
this.paddingHeight = document.querySelector(".footer #infoBox").offsetHeight;
|
||||
this.paddingHeight = this.getFooterInfoBoxHeight();
|
||||
},
|
||||
updateButtonText(newText) {
|
||||
this.customButtontext = newText;
|
||||
|
|
|
|||
|
|
@ -43,7 +43,8 @@ export default {
|
|||
}
|
||||
},
|
||||
getFooterInfoBoxHeight() {
|
||||
return document.querySelector(".footer #infoBox").offsetHeight;
|
||||
const footerInfoBox = document.querySelector(".footer #infoBox");
|
||||
return footerInfoBox ? footerInfoBox.offsetHeight : 0;
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue