feat(editor): a clear final state once the engine spent its three recoveries (canvas and action alerts)
This commit is contained in:
1 parent
f0580922b5
commit
0279953e9e
19 files changed
+101
-16
No files matched your search
@@ -34,6 +34,11 @@ const browserSource: CoreSource = {
|
||||
|
||||
let runtime: CoreRuntime | null = null
|
||||
|
||||
/** Whether the page's runtime spent its recoveries (never creates the runtime). */
|
||||
export function coreStopped(): boolean {
|
||||
return runtime?.stopped ?? false
|
||||
}
|
||||
|
||||
/** The page's runtime, created on first use. */
|
||||
export function coreRuntime(): CoreRuntime {
|
||||
runtime ??= new CoreRuntime(browserSource)
|
||||
|
||||
Reference in new issue
Block a user