Spaces:
Running
Running
parsee-mizuhashi
commited on
Commit
·
dc2aa9d
1
Parent(s):
3b0939c
Update mobile/index.html
Browse files- mobile/index.html +20 -1
mobile/index.html
CHANGED
@@ -10,8 +10,27 @@
|
|
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-693ac17f.css">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
</head>
|
14 |
-
<body>
|
15 |
<div id="app-root" class="mobile">
|
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-693ac17f.css">
|
13 |
+
|
14 |
+
<script>
|
15 |
+
function bewwy_mofu() {
|
16 |
+
|
17 |
+
const urlParams = new URLSearchParams(window.location.search);
|
18 |
+
port = urlParams.get("port");
|
19 |
+
url = urlParams.get("url");
|
20 |
+
if (url == null) {return;}
|
21 |
+
url = url.replace("https://", "");
|
22 |
+
config = localStorage.getItem('config');
|
23 |
+
mofuness = true;
|
24 |
+
if (config == null){config="{}";} //you a-assume eveyone h-have wocawstowage weady
|
25 |
+
config = JSON.parse(config); //Hewwo mofu whwrw dwd u gw
|
26 |
+
config['comfyUIHostname'] = url;
|
27 |
+
config['comfyUIPort'] = parseInt(port);
|
28 |
+
localStorage.setItem("config", JSON.stringify(config));
|
29 |
+
}
|
30 |
+
//that wanguage i-is m-much s-sanew than t-this o-one i-i'm c-cuwwentwy using w-wight nyow nyya~
|
31 |
+
</script>
|
32 |
</head>
|
33 |
+
<body onload="bewwy_mofu()">
|
34 |
<div id="app-root" class="mobile">
|
35 |
|
36 |
</body>
|