forked from 0x2620/pandora
support embed urls without arguments, fixes #2089
This commit is contained in:
parent
4df2882ef2
commit
67b70e58b9
1 changed files with 3 additions and 1 deletions
|
@ -498,7 +498,9 @@ pandora.ui.textEmbed = function() {
|
||||||
that.update = function(url) {
|
that.update = function(url) {
|
||||||
var parsed, src;
|
var parsed, src;
|
||||||
if (url) {
|
if (url) {
|
||||||
url = url.replace(/&/g, '&') + '&matchRatio=true';
|
url = url.replace(/&/g, '&')
|
||||||
|
+ (url.indexOf('#embed') < url.indexOf('?') ? '&' : '?')
|
||||||
|
+ 'matchRatio=true';
|
||||||
src = $iframe.attr('src');
|
src = $iframe.attr('src');
|
||||||
parsed = {src: Ox.parseURL(src), url: Ox.parseURL(url)};
|
parsed = {src: Ox.parseURL(src), url: Ox.parseURL(url)};
|
||||||
if (
|
if (
|
||||||
|
|
Loading…
Reference in a new issue