-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
35 lines (31 loc) · 1000 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- https://electronjs.org/docs/tutorial/security#csp-meta-tag -->
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline';" />
<title>LoKaBu</title>
<link rel="stylesheet" href="./renderer/view/common/Main.css">
<script type="module">
const { ipcRenderer } = require('electron');
import { AppController } from './renderer/AppController.js'
import { EventBus } from './renderer/EventBus.js'
const oRootDomRef = document.body
const oApp = new AppController(oRootDomRef);
EventBus.setIpcRenderer(ipcRenderer);
EventBus.sendToMain("windowLoaded", "browser");
EventBus.listen("shutdownApp", () => {
console.log("shutdown");
EventBus.sendToMain("windowProcessClosed");
});
oApp.start();
window.addEventListener("keyup", oEvent => {
if (oEvent.key === "F12") {
EventBus.sendToMain("openDevTools");
}
})
</script>
</head>
<body>
</body>
</html>