mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 17:25:39 +01:00
v0.55.1
This commit is contained in:
parent
d678c1d32d
commit
962c5efbf7
4 changed files with 5 additions and 5 deletions
2
.nvmrc
2
.nvmrc
|
|
@ -1 +1 @@
|
|||
22.18.0
|
||||
22.20.0
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "monaco-editor",
|
||||
"version": "0.55.0",
|
||||
"version": "0.55.1",
|
||||
"vscodeRef": "86f5a62f058e3905f74a9fa65d04b2f3b533408e",
|
||||
"private": true,
|
||||
"description": "A browser based code editor",
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue