From b83c7be4d9491c8a652f5ee7993437fd7025eda1 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 17 Apr 2020 15:12:20 +0530 Subject: [PATCH] ... --- resources/lookup.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/resources/lookup.js b/resources/lookup.js index 90712a83bd..de135c86f5 100644 --- a/resources/lookup.js +++ b/resources/lookup.js @@ -12,7 +12,11 @@ function fix_google_markup() { var cc = document.getElementById('center_col'); - if (!cc && ++num_tries < 10) { setTimeout(fix_google_markup, 100); } + if (!cc) { + if (++num_tries > 10) return; + setTimeout(fix_google_markup, 100); + return; + } cc.style.marginLeft = '0'; cc = document.getElementById('cnt'); if (cc) cc.style.paddingTop = '0';