parent
8727c4f476
commit
495b05c1de
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ export class IFrameWebview extends BaseWebview<HTMLIFrameElement> implements Web
|
||||||
// Wait the end of the ctor when all listeners have been hooked up.
|
// Wait the end of the ctor when all listeners have been hooked up.
|
||||||
const element = document.createElement('iframe');
|
const element = document.createElement('iframe');
|
||||||
element.className = `webview ${options.customClasses || ''}`;
|
element.className = `webview ${options.customClasses || ''}`;
|
||||||
element.sandbox.add('allow-scripts', 'allow-same-origin', 'allow-forms');
|
element.sandbox.add('allow-scripts', 'allow-same-origin', 'allow-forms', 'allow-pointer-lock');
|
||||||
element.style.border = 'none';
|
element.style.border = 'none';
|
||||||
element.style.width = '100%';
|
element.style.width = '100%';
|
||||||
element.style.height = '100%';
|
element.style.height = '100%';
|
||||||
|
|
Loading…
Reference in a new issue