frame: allow non local urls

This commit is contained in:
bordun 2020-05-11 16:46:27 +02:00
parent b1bb1c1bad
commit d1f937baf6
2 changed files with 2 additions and 4 deletions

View file

@ -74,6 +74,7 @@
- dropdown: close menu when receiving a value
- dropdown: removed empty 1st option
- switch: removed `showValues` (inconsistent with menu/dropdown, feature covered by `values` property)
- frame: allow loading non local urls
- widget removals
- `push`, `toggle`: merged into `button`

View file

@ -1,6 +1,5 @@
var Widget = require('../common/widget'),
html = require('nanohtml'),
{urlParser} = require('../utils'),
locales = require('../../locales'),
StaticProperties = require('../mixins/static_properties')
@ -47,9 +46,7 @@ class Frame extends StaticProperties(Widget, {bypass: true}) {
this.value = v
var parser = urlParser(this.value)
if (this.value && parser.isLocal()) {
if (this.value) {
this.frame.setAttribute('src', this.value)
this.widget.classList.remove('error')
if (this.errorTextMounted) {