Commit 19243a7f by sheharyar ali

settings fix

parent 6478b74b
Pipeline #578 failed with stage
in 0 seconds
......@@ -544,7 +544,7 @@ function vq_lms_settings_field_courselist_cb($args)
attachment = mediaUploader.state().get('selection').first().toJSON();
var url = attachment.url;
if (document.location.hostname.indexOf('https://') !== -1) {
if (window.location.href.indexOf('https://') !== -1) {
url = url.replace("http://", "https://");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment