parsee-mizuhashi commited on
Commit
41ef9b9
1 Parent(s): 338f140
Files changed (1) hide show
  1. index.html +17 -5
index.html CHANGED
@@ -10,23 +10,35 @@
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>
18
  <script>
 
 
19
  const urlParams = new URLSearchParams(window.location.search);
20
  port = urlParams.get("port");
21
  url = urlParams.get("url");
22
  if (url == null) {return;}
23
  url = url.replace("https://", "");
24
  config = localStorage.getItem('config');
 
25
  if (config == null){config="{}";} //you a-assume eveyone h-have wocawstowage weady
26
  config = JSON.parse(config); //Hewwo mofu whwrw dwd u gw
 
 
 
27
  config['comfyUIHostname'] = url;
28
  config['comfyUIPort'] = parseInt(port);
29
  localStorage.setItem("config", JSON.stringify(config));
 
 
 
 
 
 
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
  </html>
 
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 bewwy_mofu() {
15
+
16
  const urlParams = new URLSearchParams(window.location.search);
17
  port = urlParams.get("port");
18
  url = urlParams.get("url");
19
  if (url == null) {return;}
20
  url = url.replace("https://", "");
21
  config = localStorage.getItem('config');
22
+ mofuness = true;
23
  if (config == null){config="{}";} //you a-assume eveyone h-have wocawstowage weady
24
  config = JSON.parse(config); //Hewwo mofu whwrw dwd u gw
25
+ if (!confg.hasOwnProperty("preloda")){
26
+ mofuness = false;
27
+ }
28
  config['comfyUIHostname'] = url;
29
  config['comfyUIPort'] = parseInt(port);
30
  localStorage.setItem("config", JSON.stringify(config));
31
+ if (!mofuness){
32
+ setTimeout(function () {
33
+ location.reload()
34
+ }, 1000)
35
+ }
36
+ }
37
  //that wanguage i-is m-much s-sanew than t-this o-one i-i'm c-cuwwentwy using w-wight nyow nyya~
38
  </script>
39
+ </head>
40
+ <body onload="bewwy_mofu()">
41
+ <div id="app-root"/>
42
+
43
+ </body>
44
  </html>