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

@ -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) {