mirror of
https://github.com/JosunLP/BrowserExtensionTemplate.git
synced 2025-10-14 16:10:10 +00:00
împl
This commit is contained in:
parent
a85764891d
commit
ab222a60e3
11 changed files with 129 additions and 53 deletions
|
@ -1,3 +1,5 @@
|
|||
import { Session } from "./classes/session.js"
|
||||
|
||||
class App {
|
||||
|
||||
private static contentEntry: string = "content"
|
||||
|
@ -8,15 +10,19 @@ class App {
|
|||
}
|
||||
|
||||
async main(): Promise<void> {
|
||||
|
||||
console.log("Hello World")
|
||||
}
|
||||
|
||||
async drawData(): Promise<void> {
|
||||
const session = Session.getInstance()
|
||||
const contentRoot = <HTMLDivElement>document.getElementById(App.contentEntry)
|
||||
const body = document.createElement("div")
|
||||
const title = document.createElement("h1")
|
||||
const text = document.createElement("p")
|
||||
title.innerText = "Hello World"
|
||||
text.innerText = session.contentTest
|
||||
body.appendChild(title)
|
||||
body.appendChild(text)
|
||||
contentRoot.appendChild(body)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue