mirror of
https://github.com/arfct/itty-bitty.git
synced 2026-03-11 08:54:33 +00:00
Update index.js
This commit is contained in:
parent
bbde578058
commit
7f7634a40d
1 changed files with 3 additions and 2 deletions
|
|
@ -408,8 +408,9 @@
|
|||
src = params.script;
|
||||
}
|
||||
let sandbox = params.renderer?.sandbox;
|
||||
if (sandbox == "none") { // passthrough
|
||||
} else if (sandbox == "hash") { // Generate sandbox based off of body hash
|
||||
// if (sandbox == "none") { // passthrough
|
||||
// } else
|
||||
if (sandbox == "hash") { // Generate sandbox based off of body hash
|
||||
let hash = await bitty.hashString(params.body);
|
||||
src = src.replace("https://", "https://script-" + hash + ".");
|
||||
} else if (sandbox) { // Use named sandbox
|
||||
|
|
|
|||
Loading…
Reference in a new issue