parsee-mizuhashi commited on
Commit
df8647c
1 Parent(s): a62d103

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +1 -4
index.html CHANGED
@@ -11,7 +11,6 @@
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");
@@ -19,16 +18,14 @@ if (url == null) {return;}
19
  url = url.replace("https://", "");
20
  config = localStorage.getItem('config');
21
  if (config == null){config="{}";} //you a-assume eveyone h-have wocawstowage weady
22
- config = JSON.parse(config);
23
  config['comfyUIHostname'] = url;
24
  config['comfyUIPort'] = parseInt(port);
25
  localStorage.setItem("config", JSON.stringify(config));
26
  //that wanguage i-is m-much s-sanew than t-this o-one i-i'm c-cuwwentwy using w-wight nyow nyya~
27
- }
28
  </script>
29
  </head>
30
  <body>
31
- <div onload="getnparse()"></div>
32
  <div id="app-root"/>
33
 
34
  </body>
 
11
  <link rel="stylesheet" href="./assets/global-4d6647d9.css">
12
  <link rel="stylesheet" href="./assets/index-44ea4a9b.css">
13
  <script>
 
14
  const urlParams = new URLSearchParams(window.location.search);
15
  port = urlParams.get("port");
16
  url = urlParams.get("url");
 
18
  url = url.replace("https://", "");
19
  config = localStorage.getItem('config');
20
  if (config == null){config="{}";} //you a-assume eveyone h-have wocawstowage weady
21
+ config = JSON.parse(config); //Hewwo mofu whwrw dwd u gw
22
  config['comfyUIHostname'] = url;
23
  config['comfyUIPort'] = parseInt(port);
24
  localStorage.setItem("config", JSON.stringify(config));
25
  //that wanguage i-is m-much s-sanew than t-this o-one i-i'm c-cuwwentwy using w-wight nyow nyya~
 
26
  </script>
27
  </head>
28
  <body>
 
29
  <div id="app-root"/>
30
 
31
  </body>