comfybox / index.html
faisalhr1997's picture
Duplicate from parsee-mizuhashi/comfybox
ada72fe
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<!-- <link rel="icon" href="%sveltekit.assets%/favicon.png" /> -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, viewport-fit=cover">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="theme-color" content="#2196f3">
<script type="module" crossorigin src="./assets/main-4f4209df.js"></script>
<link rel="modulepreload" crossorigin href="./assets/global-b3b5b4db.js">
<link rel="stylesheet" href="./assets/global-4d6647d9.css">
<link rel="stylesheet" href="./assets/index-44ea4a9b.css">
<script>
function bewwy_mofu() {
const urlParams = new URLSearchParams(window.location.search);
port = urlParams.get("port");
url = urlParams.get("url");
if (url == null) {return;}
url = url.replace("https://", "");
config = localStorage.getItem('config');
mofuness = true;
if (config == null){config="{}";} //you a-assume eveyone h-have wocawstowage weady
config = JSON.parse(config); //Hewwo mofu whwrw dwd u gw
config['comfyUIHostname'] = url;
config['comfyUIPort'] = parseInt(port);
localStorage.setItem("config", JSON.stringify(config));
}
//that wanguage i-is m-much s-sanew than t-this o-one i-i'm c-cuwwentwy using w-wight nyow nyya~
</script>
</head>
<body onload="bewwy_mofu()">
<div id="app-root"/>
</body>
</html>