From 96c136ad0aede0901656611f4f176fb77af535f9 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 17 Apr 2020 12:32:25 +0530 Subject: [PATCH] Tr fixing google markup repeatedly --- resources/lookup.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/resources/lookup.js b/resources/lookup.js index aa13c6e725..90712a83bd 100644 --- a/resources/lookup.js +++ b/resources/lookup.js @@ -8,8 +8,11 @@ (function() { "use strict"; + var num_tries = 0; + function fix_google_markup() { var cc = document.getElementById('center_col'); + if (!cc && ++num_tries < 10) { setTimeout(fix_google_markup, 100); } cc.style.marginLeft = '0'; cc = document.getElementById('cnt'); if (cc) cc.style.paddingTop = '0';