提交 b2bf3e39 编写于 作者: M Matt Bierner

Revert origin for webview based webviews

上级 23bdcebe
......@@ -256,7 +256,7 @@
defaultScript.textContent = `
const acquireVsCodeApi = (function() {
const originalPostMessage = window.parent.postMessage.bind(window.parent);
const targetOrigin = window.parent.origin;
const targetOrigin = '*';
let acquired = false;
let state = ${data.state ? `JSON.parse(${JSON.stringify(data.state)})` : undefined};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册