diff options
author | Marcin Rataj <lidel@lidel.org> | 2014-11-11 19:04:24 +0100 |
---|---|---|
committer | Marcin Rataj <lidel@lidel.org> | 2014-11-11 19:04:24 +0100 |
commit | 07f577e1c21efeba3d32a56d0d737f71a41d3859 (patch) | |
tree | 394c63cd441934a92f51be76a9f21f52a560f1e9 /assets/javascripts/iframe_whitelist.js | |
parent | e702340e385fc87013b2e3999805d16340a271a5 (diff) | |
download | discourse-umap-07f577e1c21efeba3d32a56d0d737f71a41d3859.tar.gz |
Initial version with iframe whitelisting and onebox boilerplate
Diffstat (limited to 'assets/javascripts/iframe_whitelist.js')
-rw-r--r-- | assets/javascripts/iframe_whitelist.js | 3 |
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); +})(); |