|
|
|
|
@ -2,12 +2,6 @@ import { Project } from "./components/project.js"
|
|
|
|
|
|
|
|
|
|
customElements.define('m-project', Project)
|
|
|
|
|
|
|
|
|
|
function e(tag, attrs, content) {
|
|
|
|
|
const el = document.createElement(tag)
|
|
|
|
|
el.innerText = content
|
|
|
|
|
return el
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class Setup {
|
|
|
|
|
constructor() {
|
|
|
|
|
this.loaded = false
|
|
|
|
|
@ -43,7 +37,7 @@ class Setup {
|
|
|
|
|
!this.loaded && this.registration.active
|
|
|
|
|
) {
|
|
|
|
|
document.body.appendChild(
|
|
|
|
|
e('m-project', {}, '')
|
|
|
|
|
document.createElement('m-project')
|
|
|
|
|
)
|
|
|
|
|
this.loaded = true
|
|
|
|
|
}
|
|
|
|
|
|