From 07f577e1c21efeba3d32a56d0d737f71a41d3859 Mon Sep 17 00:00:00 2001 From: Marcin Rataj Date: Tue, 11 Nov 2014 19:04:24 +0100 Subject: Initial version with iframe whitelisting and onebox boilerplate --- assets/javascripts/iframe_whitelist.js | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 assets/javascripts/iframe_whitelist.js (limited to 'assets/javascripts') 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); +})(); -- cgit v1.2.3