Switch filesize component from better to element

This commit is contained in:
Talia 2022-06-09 13:47:09 +02:00
parent 2799f0f2cc
commit f7f8b9a50b
1 changed files with 7 additions and 6 deletions

View File

@ -1,13 +1,16 @@
import {text, html} from '../skooma.js'
import {Better} from '../better.js'
import element from "/element.js"
class FileSize extends Better {
element(class FileSize extends HTMLElement {
static attributes = {file: true}
constructor() {
super()
this.attachShadow({mode: "open"})
this.connected.then(self => self.update())
}
connectedCallback() {
this.update()
}
fileChanged() {
@ -24,6 +27,4 @@ class FileSize extends Better {
})
}
}
}
FileSize.initialise()
})