提交 54256d49 编写于 作者: M Matt Bierner

Use partiation for all webviews, but lump all svg-webviews into same partiation

上级 be338319
......@@ -77,9 +77,7 @@ export default class Webview {
private _options: WebviewOptions = {},
) {
this._webview = <any>document.createElement('webview');
if (!this._options.allowSvgs) {
this._webview.setAttribute('partition', `webview${Webview.index++}`);
}
this._webview.setAttribute('partition', this._options.allowSvgs ? 'webview' : `webview${Webview.index++}`);
// disable auxclick events (see https://developers.google.com/web/updates/2016/10/auxclick)
this._webview.setAttribute('disableblinkfeatures', 'Auxclick');
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册