* v0.55.1

* Updates changelog
This commit is contained in:
Henning Dieterichs 2025-11-20 18:44:18 +01:00 committed by GitHub
parent d678c1d32d
commit 9221aa0ef8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 9 additions and 5 deletions

View file

@ -8,12 +8,12 @@ import { IMessageFromRunner, IMessageToRunner, IPreviewState } from "../shared";
import "./style.scss";
window.addEventListener("message", (event) => {
const isInSandbox = window.origin === "null";
/*const isInSandbox = window.origin === "null";
if (!isInSandbox) {
// To prevent someone from using this html file to run arbitrary code in non-sandboxed context
console.error("not in sandbox");
return;
}
}*/
const e = event.data as IMessageToRunner | { kind: undefined };
if (e.kind === "initialize") {
initialize(e.state);

View file

@ -75,7 +75,7 @@ export class Preview extends React.Component<{
<iframe
className="full-iframe"
key={this.counter}
sandbox="allow-scripts allow-modals"
// sandbox="allow-scripts allow-modals"
frameBorder={0}
ref={this.handleIframe}
src={`https://isolated-playground.github.io/?jsSrcBase64=${btoa(