From 1c50bb3f61cb21558f0318031962c10abeb796b9 Mon Sep 17 00:00:00 2001 From: ansuz Date: Tue, 5 Sep 2017 15:36:46 +0200 Subject: [PATCH] clear hung tooltips --- www/common/cryptpad-common.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index 88da2d533..08b2d3e56 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -2094,6 +2094,8 @@ define([ // Race condition : if document.body is undefined when alertify.js is loaded, Alertify // won't work. We have to reset it now to make sure it uses a correct "body" UI.Alertify.reset(); + // clear any tooltips that might get hung + setInterval(function () { common.clearTooltips(); }, 5000); // Load the new pad when the hash has changed var oldHref = document.location.href;