almost working

This commit is contained in:
Jade (Rose) Rowland
2025-07-29 18:58:28 -04:00
parent ec920a1551
commit ecbd7c77a5
7 changed files with 150 additions and 147 deletions
+1
View File
@@ -26,6 +26,7 @@ export * from './logger.mjs';
export * from './time.mjs';
export * from './ui.mjs';
export * from './ui.mjs';
export * from './idbutils.mjs'
export { default as drawLine } from './drawLine.mjs';
// below won't work with runtime.mjs (json import fails)
/* import * as p from './package.json';
+1
View File
@@ -1,2 +1,3 @@
export * from './repl-component.mjs';
export * from './prebake.mjs';
+2 -1
View File
@@ -221,7 +221,8 @@ export const samples = async (sampleMap, baseUrl = sampleMap._base || '', option
const base = sampleMap.split('/').slice(0, -1).join('/');
const savedJSON = localStorage.getItem(sampleMap)
if (savedJSON) {
samples(JSON.parse(savedJSON), baseUrl || json._base || base, options)
const json = JSON.parse(savedJSON)
samples(json, baseUrl || json._base || base, options)
} else {