Merge pull request #578 from ONLYOFFICE/feature/pluginAllows
Add permission to plugins
This commit is contained in:
commit
5fa71477f1
|
@ -879,7 +879,7 @@
|
||||||
iframe.allowFullscreen = true;
|
iframe.allowFullscreen = true;
|
||||||
iframe.setAttribute("allowfullscreen",""); // for IE11
|
iframe.setAttribute("allowfullscreen",""); // for IE11
|
||||||
iframe.setAttribute("onmousewheel",""); // for Safari on Mac
|
iframe.setAttribute("onmousewheel",""); // for Safari on Mac
|
||||||
iframe.setAttribute("allow", "autoplay");
|
iframe.setAttribute("allow", "autoplay; camera; microphone; display-capture");
|
||||||
|
|
||||||
if (config.type == "mobile")
|
if (config.type == "mobile")
|
||||||
{
|
{
|
||||||
|
|
|
@ -210,6 +210,7 @@ define([
|
||||||
this.iframePlugin.align = "top";
|
this.iframePlugin.align = "top";
|
||||||
this.iframePlugin.frameBorder = 0;
|
this.iframePlugin.frameBorder = 0;
|
||||||
this.iframePlugin.scrolling = "no";
|
this.iframePlugin.scrolling = "no";
|
||||||
|
this.iframePlugin.allow = "camera; microphone; display-capture";
|
||||||
this.iframePlugin.onload = _.bind(this._onLoad,this);
|
this.iframePlugin.onload = _.bind(this._onLoad,this);
|
||||||
this.currentPluginFrame.append(this.iframePlugin);
|
this.currentPluginFrame.append(this.iframePlugin);
|
||||||
|
|
||||||
|
@ -393,6 +394,7 @@ define([
|
||||||
iframe.align = "top";
|
iframe.align = "top";
|
||||||
iframe.frameBorder = 0;
|
iframe.frameBorder = 0;
|
||||||
iframe.scrolling = "no";
|
iframe.scrolling = "no";
|
||||||
|
iframe.allow = "camera; microphone; display-capture";
|
||||||
iframe.onload = _.bind(this._onLoad,this);
|
iframe.onload = _.bind(this._onLoad,this);
|
||||||
|
|
||||||
var me = this;
|
var me = this;
|
||||||
|
|
Loading…
Reference in a new issue