From 0431911dd136b4f0aa985436c8bdb923dcff9d41 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Wed, 29 Apr 2020 12:29:35 +0200 Subject: [PATCH] Add missing js file from previous commit --- api/js/etemplate/et2_widget_iframe.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/api/js/etemplate/et2_widget_iframe.js b/api/js/etemplate/et2_widget_iframe.js index 27d60f33d2..658eb471b5 100644 --- a/api/js/etemplate/et2_widget_iframe.js +++ b/api/js/etemplate/et2_widget_iframe.js @@ -65,6 +65,10 @@ var et2_iframe = /** @class */ (function (_super) { this.options.name = _name; this.htmlNode.attr('name', _name); }; + et2_iframe.prototype.set_allow = function (_allow) { + this.options.allow = _allow; + this.htmlNode.attr('allow', _allow); + }; /** * Make it look like part of the containing document * @@ -158,6 +162,12 @@ var et2_iframe = /** @class */ (function (_super) { "default": "", description: "Specifies URL for the iframe", type: "string" + }, + allow: { + name: "Allow", + "default": "", + description: "Specifies list of allow features, e.g. camera", + type: "string" } }; return et2_iframe;