From c6ee9c8192e4c286639bb7a7574619e0475b895c Mon Sep 17 00:00:00 2001 From: "loadrunner%betak.net" Date: Tue, 1 May 2001 23:12:31 +0000 Subject: [PATCH] bug 60406, r=nhotta, sr=alecf --- xpfe/global/resources/content/charsetOverlay.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/xpfe/global/resources/content/charsetOverlay.js b/xpfe/global/resources/content/charsetOverlay.js index e588616f363..d592c2074f2 100644 --- a/xpfe/global/resources/content/charsetOverlay.js +++ b/xpfe/global/resources/content/charsetOverlay.js @@ -121,11 +121,9 @@ function SetForcedCharset(charset) function UpdateCurrentCharset() { var wnd = document.commandDispatcher.focusedWindow; - if (window == wnd) wnd = window._content; + if ((window == wnd) || (wnd == null)) wnd = window._content; var charset = wnd.document.characterSet; - dump("Update current charset: " + charset + "\n"); - var menuitem = document.getElementById('charset.' + charset); if (menuitem) {