debug(v2): log WindowRenderer to check if windows mount
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
a2f77e1061
commit
f9ae3d6b96
3 changed files with 5 additions and 2 deletions
|
|
@ -20,11 +20,14 @@ interface Props {
|
||||||
export const WindowRenderer: React.FC<Props> = ({ characters, chatMessages, nearbyObjects, socket }) => {
|
export const WindowRenderer: React.FC<Props> = ({ characters, chatMessages, nearbyObjects, socket }) => {
|
||||||
const { windows } = useWindowManager();
|
const { windows } = useWindowManager();
|
||||||
|
|
||||||
|
console.log('[WR] Rendering', windows.length, 'windows:', windows.map(w => w.id));
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{windows.map(w => {
|
{windows.map(w => {
|
||||||
const charName = w.charName ?? '';
|
const charName = w.charName ?? '';
|
||||||
const prefix = w.id.split('-')[0];
|
const prefix = w.id.split('-')[0];
|
||||||
|
console.log('[WR] Window:', w.id, 'prefix:', prefix, 'charName:', charName);
|
||||||
|
|
||||||
switch (prefix) {
|
switch (prefix) {
|
||||||
case 'chat':
|
case 'chat':
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -5,7 +5,7 @@
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>Mosswart Overlord v2</title>
|
<title>Mosswart Overlord v2</title>
|
||||||
<link rel="icon" type="image/png" href="/icons/7735.png" />
|
<link rel="icon" type="image/png" href="/icons/7735.png" />
|
||||||
<script type="module" crossorigin src="/v2/assets/index-Belkz_Ci.js"></script>
|
<script type="module" crossorigin src="/v2/assets/index-CvsOrcq1.js"></script>
|
||||||
<link rel="stylesheet" crossorigin href="/v2/assets/index-DrsM2PEe.css">
|
<link rel="stylesheet" crossorigin href="/v2/assets/index-DrsM2PEe.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue