indentation
This commit is contained in:
parent
5509b69908
commit
58661508d4
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue