indentation

This commit is contained in:
Simon Vieille 2020-04-25 16:29:52 +02:00
parent 5509b69908
commit 58661508d4
Signed by: deblan
GPG key ID: 03383D15A1D31745

View file

@ -53,9 +53,9 @@ export default {
let href = element.getAttribute('href')
if (href !== '#') {
let svg = element.querySelector('svg').outerHTML
let svg = element.querySelector('svg').outerHTML
svg = svg.replace(/(height|width)="20"/, '')
svg = svg.replace(/(height|width)="20"/, '')
this.apps.push({
href: href,
@ -67,18 +67,18 @@ export default {
}
},
retrieveLogo() {
const ncLogo = document.querySelector('#nextcloud .logo')
const ncLogo = document.querySelector('#nextcloud .logo')
if (ncLogo) {
const url = window.getComputedStyle(ncLogo, null)
.getPropertyValue('background-image')
.replace('url("', '')
.replace('")', '')
if (ncLogo) {
const url = window.getComputedStyle(ncLogo, null)
.getPropertyValue('background-image')
.replace('url("', '')
.replace('")', '')
if (url && url !== 'none') {
this.logo = url
}
}
if (url && url !== 'none') {
this.logo = url
}
}
},
},
created() {
@ -87,11 +87,11 @@ export default {
const menu = document.querySelector('#appmenu')
if (menu) {
const config = {attributes: true, childList: true, subtree: true};
const observer = new MutationObserver(this.retrieveApps);
observer.observe(menu, config);
}
if (menu) {
const config = {attributes: true, childList: true, subtree: true};
const observer = new MutationObserver(this.retrieveApps);
observer.observe(menu, config);
}
}
}
</script>