Fix Safari bug

This commit is contained in:
Pierre HUBERT 2020-04-14 18:03:49 +02:00
parent 58c73b3108
commit fe4e659b08

View File

@ -13,6 +13,10 @@ ComunicWeb.components.posts.ui = {
* @param {HTMLElement} target The target for the post
*/
display_post: async function(info, target) {
// Safari strange bug
if(target === undefined)
target = arguments[1]
//Check if it is required to create a post root element or not
if(target.className.includes("post"))