Merge pull request #167 from uqbar-dao/wg/kinode-chess

Update chess URL
This commit is contained in:
dr-frmr 2024-01-17 15:01:36 -03:00 committed by GitHub
commit 3a3b333838
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 94 additions and 94 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -9,8 +9,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="Cross-Origin-Opener-Policy" content="same-origin-allow-popups" />
<title>Chess</title>
<script type="module" crossorigin src="/chess:chess:nectar/assets/index-6558d890.js"></script>
<link rel="stylesheet" href="/chess:chess:nectar/assets/index-b1380f22.css">
<script type="module" crossorigin src="/chess:chess:sys/assets/index-c34c1996.js"></script>
<link rel="stylesheet" href="/chess:chess:sys/assets/index-9cf353a0.css">
</head>
<body>
<div id="root"></div>

View File

@ -207,7 +207,7 @@
<h4>Apps:</h4>
<!-- <a id="file-transfer" href="/file-transfer">File Transfer</a> -->
<a id="chess" href="/chess:chess:nectar/">Chess</a>
<a id="chess" href="/chess:chess:sys/">Chess</a>
</div>
<script>window.ourName = window.our = '${our}'</script>
<script>
@ -228,14 +228,14 @@
chessLink.attributes.href.value = (window.location.pathname + chessLink.attributes.href.value).replace('//', '/')
console.log('OUR NODE NAME:', window.our)
console.log(getCookie(`nectar-ws-auth_${window.our}`))
console.log(getCookie(`kinode-ws-auth_${window.our}`))
// const webSocket = new WebSocket('ws://' + window.location.host) // Handle proxying later
// webSocket.onopen = () => {
// console.log('WS OPENED')
// webSocket.send(JSON.stringify({
// Register: {
// auth_token: getCookie(`nectar-ws-auth_${window.our}`),
// auth_token: getCookie(`kinode-ws-auth_${window.our}`),
// channel_id: "homepage" // Can be unique to this connection, app, or omitted entirely
// }
// }))
@ -243,7 +243,7 @@
// setTimeout(() => {
// webSocket.send(JSON.stringify({
// Action: {
// auth_token: getCookie(`nectar-ws-auth_${window.our}`),
// auth_token: getCookie(`kinode-ws-auth_${window.our}`),
// target: {
// node: window.our,
// process: 'homepage'