mirror of
https://github.com/leporello-js/leporello-js
synced 2026-01-13 21:14:28 -08:00
async calls WIP
This commit is contained in:
@@ -62,6 +62,7 @@ const make_function = globalThis.process != null
|
|||||||
? (...args) => new Function(...args)
|
? (...args) => new Function(...args)
|
||||||
// Browser context, run code in iframe
|
// Browser context, run code in iframe
|
||||||
: (...args) => {
|
: (...args) => {
|
||||||
|
/* access window object for iframe */
|
||||||
const fn_constructor = globalThis.run_code.contentWindow.Function
|
const fn_constructor = globalThis.run_code.contentWindow.Function
|
||||||
return new fn_constructor(...args)
|
return new fn_constructor(...args)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user