mirror of
https://github.com/arfct/itty-bitty.git
synced 2026-03-11 08:54:33 +00:00
Support rendering from custom domain
This commit is contained in:
parent
20eb0203c8
commit
fb82baf22d
1 changed files with 2 additions and 1 deletions
|
|
@ -316,7 +316,8 @@
|
|||
// writeDocContent(iframe.contentWindow.document, SCRIPT_LOADER)
|
||||
// iframe.srcdoc = SCRIPT_LOADER;
|
||||
|
||||
let src = location.origin + "/render";
|
||||
let src = window.scriptDomain ?? location.origin;
|
||||
src += "/render";
|
||||
let sandbox = params.renderer?.sandbox;
|
||||
if (sandbox == "hash") { // Generate sandbox based off of body hash
|
||||
let hash = await bitty.hashString(params.body);
|
||||
|
|
|
|||
Loading…
Reference in a new issue