From b887c0ef64814f32044a46fd6a41c61ee301006b Mon Sep 17 00:00:00 2001 From: Ciaran Ainsworth Date: Sat, 22 Jan 2022 19:24:02 +0100 Subject: [PATCH] Fix embedded player --- changes/changelog.d/1675.bugfix | 1 + front/src/EmbedFrame.vue | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changes/changelog.d/1675.bugfix diff --git a/changes/changelog.d/1675.bugfix b/changes/changelog.d/1675.bugfix new file mode 100644 index 000000000..b2ee57b72 --- /dev/null +++ b/changes/changelog.d/1675.bugfix @@ -0,0 +1 @@ +Fix an issue with the embedded player not showing any content (#1675) \ No newline at end of file diff --git a/front/src/EmbedFrame.vue b/front/src/EmbedFrame.vue index bc31d51e4..d2c67623d 100644 --- a/front/src/EmbedFrame.vue +++ b/front/src/EmbedFrame.vue @@ -252,7 +252,7 @@ function getURLParams () { const decode = function (s) { return decodeURIComponent(s.replace(pl, ' ')) } const query = window.location.search.substring(1) - while (match === search.exec(query)) { urlParams[decode(match[1])] = decode(match[2]) } + while ((match = search.exec(query)) !== null) { urlParams[decode(match[1])] = decode(match[2]) } return urlParams } export default {