From 6746622bfaddfbfea144ba4c21facd1b08fce486 Mon Sep 17 00:00:00 2001 From: "stephend%netscape.com" Date: Wed, 17 May 2006 02:34:44 +0000 Subject: [PATCH] Bug 119764. JS strict warnings in pref-themes.js. Patch by Stephen Walker r=morten@nilsen.com/sr=hewitt@netscape.com --- suite/common/pref/pref-themes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/suite/common/pref/pref-themes.js b/suite/common/pref/pref-themes.js index 0440fbaa5eb..9566ff4e7f1 100644 --- a/suite/common/pref/pref-themes.js +++ b/suite/common/pref/pref-themes.js @@ -51,7 +51,7 @@ function Startup() { gData = parent.hPrefWindow.wsm.dataManager.pageData["chrome://communicator/content/pref/pref-themes.xul"]; var list = document.getElementById( "skinsList" ); - if (gData.loaded) { + if ("loaded" in gData && "themeIndex" in gData) { list.selectedIndex = gData.themeIndex; return; }