aboutsummaryrefslogtreecommitdiff
path: root/mod/embed
diff options
context:
space:
mode:
Diffstat (limited to 'mod/embed')
-rw-r--r--mod/embed/start.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/mod/embed/start.php b/mod/embed/start.php
index 8a55cc5bb..fb6b8ac84 100644
--- a/mod/embed/start.php
+++ b/mod/embed/start.php
@@ -21,7 +21,9 @@ function embed_init() {
// Page handler for the modal media embed
elgg_register_page_handler('embed', 'embed_page_handler');
- elgg_register_js('elgg.embed', 'js/embed/embed.js', 'footer');
+ $embed_js = elgg_get_simplecache_url('js', 'embed/embed');
+ elgg_register_simplecache_view('js/embed/embed');
+ elgg_register_js('elgg.embed', $embed_js, 'footer');
}
/**