This commit is contained in:
Markos Gogoulos
2026-04-21 13:01:52 +03:00
parent 9ec4eea3a1
commit c380b29c4b
2 changed files with 16 additions and 6 deletions
+1 -1
View File
@@ -1 +1 @@
VERSION = "8.9995"
VERSION = "8.9996"
+15 -5
View File
@@ -261,11 +261,21 @@
var baseUrl = window.location.origin;
var embedUrl = baseUrl + '/embed?m=' + mediaId;
window.parent.postMessage({
type: 'videoSelected',
embedUrl: embedUrl,
videoId: mediaId
}, '*');
var sendPostMsg = function() {
window.parent.postMessage({
type: 'videoSelected',
embedUrl: embedUrl,
videoId: mediaId
}, '*');
};
fetch('/api/v1/media/' + mediaId + '/share', {
method: 'POST',
headers: {
'X-CSRFToken': getCSRFToken(),
'Content-Type': 'application/json',
},
}).then(sendPostMsg).catch(sendPostMsg);
return;
}
setTimeout(function(){ window.location.href = response.media_url; }, 500);