aboutsummaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authorMarcin Rataj <lidel@lidel.org>2017-10-21 13:41:05 +0200
committerMarcin Rataj <lidel@lidel.org>2017-10-21 13:41:05 +0200
commitde8fa0507934e053c7bc6efbc455627246979056 (patch)
treebdbdb79010e350804082dc122dee3a51f529eafb /assets
parentca8318bce8ae84264abd8361e05d1914d3325106 (diff)
downloaddiscourse-umap-de8fa0507934e053c7bc6efbc455627246979056.tar.gz
Potential fix for #2
Diffstat (limited to 'assets')
-rw-r--r--assets/javascripts/iframe_whitelist.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/assets/javascripts/iframe_whitelist.js b/assets/javascripts/iframe_whitelist.js
index 1ed5e80..a7aa880 100644
--- a/assets/javascripts/iframe_whitelist.js
+++ b/assets/javascripts/iframe_whitelist.js
@@ -1,3 +1,4 @@
(function() {
+ if (Discourse.dialect_deprecated) { return; }
Discourse.Markdown.whiteListIframe(/^(https?:)?\/\/www\.openstreetmap\.org\/export\/embed.html\?.+/i);
})();