aboutsummaryrefslogtreecommitdiff
path: root/assets/javascripts/iframe_whitelist.js
diff options
context:
space:
mode:
Diffstat (limited to 'assets/javascripts/iframe_whitelist.js')
-rw-r--r--assets/javascripts/iframe_whitelist.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/assets/javascripts/iframe_whitelist.js b/assets/javascripts/iframe_whitelist.js
new file mode 100644
index 0000000..1ed5e80
--- /dev/null
+++ b/assets/javascripts/iframe_whitelist.js
@@ -0,0 +1,3 @@
+(function() {
+ Discourse.Markdown.whiteListIframe(/^(https?:)?\/\/www\.openstreetmap\.org\/export\/embed.html\?.+/i);
+})();