-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
39 lines (38 loc) · 1.48 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
39
<!DOCTYPE html>
<meta charset="utf-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#1a1b1e" />
<meta name="description" content="This awesome app was made with ReactJS" />
<link rel="apple-touch-icon" href="/logo192.png" />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link rel="manifest" href="/manifest.json" />
<link rel="stylesheet" href="/index.css" />
<title>index.html title</title>
<body>
<noscript>JavaScript is required to use this app because this app is made with ReactJS</noscript>
<div id="root"></div>
<!--
You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.
-->
<script type="module" src="/src/main.jsx"></script>
<!-- Handle additional app launches (url, etc.) -->
<script type="module">
import { listen } from '@tauri-apps/api/event';
import { appWindow } from '@tauri-apps/api/window';
if (window.__TAURI__ !== undefined) {
await listen('fromOtherInstance',
({ payload, ...eventObj }) => {
appWindow.unminimize().then(() => appWindow.setFocus(true));
let args = payload?.args;
let cwd = payload?.cwd;
if (args?.length > 1) { }
}
);
}
</script>
</body>