mirror of
https://github.com/JosunLP/BrowserExtensionTemplate.git
synced 2025-10-14 16:10:10 +00:00
basic structure
This commit is contained in:
parent
455c62a936
commit
977831157f
22 changed files with 1363 additions and 1 deletions
24
src/app.ts
Normal file
24
src/app.ts
Normal file
|
@ -0,0 +1,24 @@
|
|||
class App {
|
||||
|
||||
private static contentEntry: string = "content"
|
||||
|
||||
constructor() {
|
||||
this.drawData()
|
||||
this.main()
|
||||
}
|
||||
|
||||
async main(): Promise<void> {
|
||||
|
||||
}
|
||||
|
||||
async drawData(): Promise<void> {
|
||||
const contentRoot = <HTMLDivElement>document.getElementById(App.contentEntry)
|
||||
const body = new HTMLDivElement()
|
||||
const title = new HTMLHeadingElement()
|
||||
title.innerText = "Hello World"
|
||||
body.appendChild(title)
|
||||
contentRoot.appendChild(body)
|
||||
}
|
||||
}
|
||||
|
||||
new App();
|
Loading…
Add table
Add a link
Reference in a new issue