fix linter issues
This commit is contained in:
@@ -85,23 +85,6 @@ const createOpener = () => {
|
||||
}
|
||||
}
|
||||
|
||||
const createLoader = () => {
|
||||
const loader = createElement('div', { id: 'side-menu-loader' })
|
||||
const bar = createElement('div', { id: 'side-menu-loader-bar' })
|
||||
|
||||
loader.appendChild(bar)
|
||||
document.querySelector('body').appendChild(loader)
|
||||
|
||||
let pageLoaderValue = 0
|
||||
|
||||
window.addEventListener('beforeunload', () => {
|
||||
setInterval(() => {
|
||||
pageLoaderBar.style.width = pageLoaderValue.toString() + '%'
|
||||
pageLoaderValue = Math.min(pageLoaderValue + 0.2, 100)
|
||||
}, 25)
|
||||
})
|
||||
}
|
||||
|
||||
onMounted(async () => {
|
||||
hasApps.value = (await navStore.getApps()).length > 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user