aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/controls.js
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2022-02-11 11:08:56 -0500
committerJesús <heckyel@hyperbola.info>2022-02-11 11:08:56 -0500
commit69e20fc11381bdc94c416f11527289a34ffb89ed (patch)
tree4b8969904958e4a377a9dd00cabd972c1ce22429 /src/js/controls.js
parent421de00c8bb27fd0cd01d19ed4c2681ef2d63446 (diff)
downloadplyr-69e20fc11381bdc94c416f11527289a34ffb89ed.tar.lz
plyr-69e20fc11381bdc94c416f11527289a34ffb89ed.tar.xz
plyr-69e20fc11381bdc94c416f11527289a34ffb89ed.zip
update from upstreamHEADmaster
Diffstat (limited to 'src/js/controls.js')
-rw-r--r--src/js/controls.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/js/controls.js b/src/js/controls.js
index ff20982e..9fe74272 100644
--- a/src/js/controls.js
+++ b/src/js/controls.js
@@ -38,7 +38,8 @@ const controls = {
// Get icon URL
getIconUrl() {
const url = new URL(this.config.iconUrl, window.location);
- const cors = url.host !== window.location.host || (browser.isIE && !window.svg4everybody);
+ const host = window.location.host ? window.location.host : window.top.location.host;
+ const cors = url.host !== host || (browser.isIE && !window.svg4everybody);
return {
url: this.config.iconUrl,