-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
38 lines (38 loc) · 1.08 KB
/
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
36
37
38
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Hello World!</title>
</head>
<body style="margin: 0; padding: 0">
<div
style="
display: flex;
background-color: grey;
-webkit-app-region: drag;
height: 28px;
"
></div>
<h1>💖 Hello World!</h1>
<p>Welcome to your Electron application.</p>
<p>
Internal navigation to any
<a href="https://google.com">origin</a> is currently not allowed.
</p>
<p>
Navigation to an URL with the intent to
<a href="https://google.com" target="_blank">open a new window</a> should
open given URL in the OS's default browser (external) instead -
<a href="https://elek.io" target="_blank"
>if the origin is on the whitelist</a
>.
</p>
<button
onclick="window.ipc.core.user.get().then((result) => console.log('Result:', result)).catch((err) => console.log('Error:', err))"
>
Test IPC
</button>
<div id="app"></div>
<script type="module" src="/src/renderer/index.ts"></script>
</body>
</html>