back to stable (pre bad test)

This commit is contained in:
2026-02-27 15:40:49 -06:00
parent d825be0ee4
commit b9840f1d32
4 changed files with 333 additions and 355 deletions
+2 -10
View File
@@ -115,16 +115,8 @@ const App: Component = () => {
<Show when={getEmbedView() === 'embed_notes'}>
{(() => {
const noteIdFromUrl = createMemo(() => {
const loc = location();
const url = new URL(loc);
// Try standard search params
let id = url.searchParams.get('noteId');
if (!id && url.hash.includes('?')) {
// Try parsing from hash (for hash-based routing)
const hashSearch = url.hash.split('?')[1];
id = new URLSearchParams(hashSearch).get('noteId');
}
return id;
const params = new URLSearchParams(new URL(location()).search);
return params.get('noteId');
});
console.log('[DEBUG App] Rendering embed/notes context. noteId trace:', noteIdFromUrl());
return <NotepadView selectedNoteId={noteIdFromUrl()} setSelectedNoteId={() => { }} hideNavigation={!!noteIdFromUrl()} />;