Fix for bug 29807; JS error from hidden window on Mac. r=ben

This commit is contained in:
sfraser%netscape.com 2000-04-05 02:33:03 +00:00
parent 16e912ab31
commit 6609958d0b

View File

@ -102,5 +102,6 @@ function charsetLoadListener (event)
// weird assertion!
}
contentArea = window.document.getElementById("appcontent")
contentArea.addEventListener("load", charsetLoadListener, true);
contentArea = window.document.getElementById("appcontent");
if (contentArea)
contentArea.addEventListener("load", charsetLoadListener, true);