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