aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/controls.js
diff options
context:
space:
mode:
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,