From 6d4a12e848e8e3ee6447d39faa2c3736fc15f7bd Mon Sep 17 00:00:00 2001 From: Jared Kipe Date: Wed, 8 Mar 2023 22:27:20 +0000 Subject: [PATCH] [FIX] hibou_professional: re-attempt render --- hibou_professional/static/src/js/core.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/hibou_professional/static/src/js/core.js b/hibou_professional/static/src/js/core.js index 8308a977..462fe894 100644 --- a/hibou_professional/static/src/js/core.js +++ b/hibou_professional/static/src/js/core.js @@ -250,7 +250,15 @@ var HibouProfessionalSystrayWidget = Widget.extend({ this.is_admin = status.is_admin; this.allow_admin_message = status.allow_admin_message; this.allow_message = status.allow_message; - this.renderElement(); + this.tryRenderElement(); + }, + + tryRenderElement: function() { + if (this._has_rendered) { + setTimeout(this.renderElement.bind(this), 10); + } else { + setTimeout(this.tryRenderElement.bind(this), 100); + } }, });