A platform for community discussion. Free, open, simple.
FIX: Remove unnecessary audio/video parent element load (#10511)
Martin Brennan9022e4516f04
diff --git a/app/assets/javascripts/pretty-text/addon/upload-short-url.js b/app/assets/javascripts/pretty-text/addon/upload-short-url.jsindex c8f8c723d8a..a193b93717e 100644--- a/app/assets/javascripts/pretty-text/addon/upload-short-url.js+++ b/app/assets/javascripts/pretty-text/addon/upload-short-url.js@@ -147,10 +147,6 @@ function _loadCachedShortUrls(uploadElements, siteSettings, opts) {upload.src = url;- // this is necessary, otherwise because of the src change the- // video/audio just doesn't bother loading!- upload.parentElement.load();-// set the url and text for the <a> tag within the <video/audio> tagconst link = upload.parentElement.querySelector("a");if (link) {