parsee-mizuhashi commited on
Commit
0985adb
·
1 Parent(s): ac0fc09

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +6 -3
index.html CHANGED
@@ -11,18 +11,21 @@
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>
 
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
+ alert("loaded")
19
+ alert(port)
20
+ alert(url)
21
  if (url == null) {return;}
22
  url = url.replace("https://", "");
23
  config = localStorage.getItem('config');
24
  config = JSON.parse(config);
25
  config['comfyUIHostname'] = url;
26
+ config['comfyUIPort'] = parseInt(port);
27
  localStorage.setItem("config", JSON.stringify(config));
28
+ //that wanguage i-is m-much s-sanew than t-this o-one i-i'm c-cuwwentwy using w-wight nyow nyya~
29
  }
30
  </script>
31
  </head>