From 7f7634a40d831c8ef2025641157f97256a984d53 Mon Sep 17 00:00:00 2001 From: Nicholas Jitkoff Date: Wed, 7 Sep 2022 23:11:04 -0700 Subject: [PATCH] Update index.js --- docs/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/index.js b/docs/index.js index a01da6c..4ed5c2c 100644 --- a/docs/index.js +++ b/docs/index.js @@ -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