prevent image error on old browsers
This commit is contained in:
parent
8b20b11ce2
commit
f4ec00c9f7
|
@ -67,10 +67,14 @@ export default {
|
|||
const ncLogo = document.querySelector('#nextcloud .logo')
|
||||
|
||||
if (ncLogo) {
|
||||
this.logo = window.getComputedStyle(ncLogo, null)
|
||||
const url = window.getComputedStyle(ncLogo, null)
|
||||
.getPropertyValue('background-image')
|
||||
.replace('url("', '')
|
||||
.replace('")', '')
|
||||
|
||||
if (url && url !== 'none') {
|
||||
this.logo = url
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue