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