@unoverse-platform/studio 0.1.58 → 0.1.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/host.ts +11 -13
package/package.json
CHANGED
package/src/host.ts
CHANGED
|
@@ -22,21 +22,19 @@ export const UNOVERSE_BASE = "";
|
|
|
22
22
|
export const hasAuth = false;
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
* universe
|
|
25
|
+
* THE LIVE PREVIEW'S SERVER: always null here, meaning the local dev platform.
|
|
26
|
+
*
|
|
27
|
+
* This used to read the universe picked in the header (`studio:universe`), written by
|
|
28
|
+
* the connect button. That chrome is gone (LOCAL_STUDIO.md §Publish is terminal-only) —
|
|
29
|
+
* and reading the stale localStorage value after removing the UI left Live mode aimed
|
|
30
|
+
* at a universe nobody could change or clear, failing with that universe's errors
|
|
31
|
+
* (seen live: "Unknown Unoverse template" from a universe the app was never published
|
|
32
|
+
* to). So local Studio's Live preview targets the local dev platform, full stop.
|
|
33
|
+
* Pointing Live at the workspace's own universe (unoverse.yaml) is future work and
|
|
34
|
+
* will come from the workspace, not from a browser store.
|
|
31
35
|
*/
|
|
32
36
|
export function liveUniverseUrl(): string | null {
|
|
33
|
-
|
|
34
|
-
const raw = localStorage.getItem("studio:universe");
|
|
35
|
-
const url = raw === null ? null : (JSON.parse(raw) as string | null);
|
|
36
|
-
return url || null;
|
|
37
|
-
} catch {
|
|
38
|
-
return null;
|
|
39
|
-
}
|
|
37
|
+
return null;
|
|
40
38
|
}
|
|
41
39
|
|
|
42
40
|
/**
|