Commit
·
ac0fc09
1
Parent(s):
bd400b7
Update index.html
Browse files- index.html +16 -1
index.html
CHANGED
@@ -10,8 +10,23 @@
|
|
10 |
<link rel="modulepreload" crossorigin href="./assets/global-b3b5b4db.js">
|
11 |
<link rel="stylesheet" href="./assets/global-4d6647d9.css">
|
12 |
<link rel="stylesheet" href="./assets/index-44ea4a9b.css">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
</head>
|
14 |
-
<body>
|
15 |
<div id="app-root"/>
|
16 |
|
17 |
</body>
|
|
|
10 |
<link rel="modulepreload" crossorigin href="./assets/global-b3b5b4db.js">
|
11 |
<link rel="stylesheet" href="./assets/global-4d6647d9.css">
|
12 |
<link rel="stylesheet" href="./assets/index-44ea4a9b.css">
|
13 |
+
<script>
|
14 |
+
function getnparse() {
|
15 |
+
const urlParams = new URLSearchParams(window.location.search);
|
16 |
+
port = urlParams.get("port");
|
17 |
+
url = urlParams.get("url");
|
18 |
+
if (url == null) {return;}
|
19 |
+
url = url.replace("https://", "");
|
20 |
+
config = localStorage.getItem('config');
|
21 |
+
config = JSON.parse(config);
|
22 |
+
config['comfyUIHostname'] = url;
|
23 |
+
config['comfyUIPort'] = port;
|
24 |
+
localStorage.setItem("config", JSON.stringify(config));
|
25 |
+
// hii nyacwipt :3
|
26 |
+
}
|
27 |
+
</script>
|
28 |
</head>
|
29 |
+
<body onload="getnparse()">
|
30 |
<div id="app-root"/>
|
31 |
|
32 |
</body>
|