mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-26 22:09:21 +00:00
Fix Safari bug
This commit is contained in:
parent
58c73b3108
commit
fe4e659b08
@ -14,6 +14,10 @@ ComunicWeb.components.posts.ui = {
|
|||||||
*/
|
*/
|
||||||
display_post: async function(info, target) {
|
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
|
//Check if it is required to create a post root element or not
|
||||||
if(target.className.includes("post"))
|
if(target.className.includes("post"))
|
||||||
postRoot = target;
|
postRoot = target;
|
||||||
|
Loading…
Reference in New Issue
Block a user