mirror of
https://github.com/uqbar-dao/nectar.git
synced 2024-11-30 01:44:58 +03:00
Merge pull request #167 from uqbar-dao/wg/kinode-chess
Update chess URL
This commit is contained in:
commit
3a3b333838
File diff suppressed because one or more lines are too long
1
modules/chess/pkg/ui/assets/index-9cf353a0.css
Normal file
1
modules/chess/pkg/ui/assets/index-9cf353a0.css
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
87
modules/chess/pkg/ui/assets/index-c34c1996.js
Normal file
87
modules/chess/pkg/ui/assets/index-c34c1996.js
Normal file
File diff suppressed because one or more lines are too long
@ -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>
|
||||
|
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user