add test before insert nextcloud logo
This commit is contained in:
parent
299abe5e96
commit
8d2818150c
|
@ -67,10 +67,14 @@ export default {
|
|||
}
|
||||
},
|
||||
retrieveLogo() {
|
||||
this.logo = window.getComputedStyle(document.querySelector('#nextcloud .logo'), null)
|
||||
.getPropertyValue('background-image')
|
||||
.replace('url("', '')
|
||||
.replace('")', '')
|
||||
const ncLogo = document.querySelector('#nextcloud .logo')
|
||||
|
||||
if (ncLogo) {
|
||||
this.logo = window.getComputedStyle(ncLogo, null)
|
||||
.getPropertyValue('background-image')
|
||||
.replace('url("', '')
|
||||
.replace('")', '')
|
||||
}
|
||||
},
|
||||
},
|
||||
created() {
|
||||
|
|
Loading…
Reference in New Issue