SettingDocumentcharset should use FindMsgAppCore which will only create a new msg app core if we haven't done so yet...

This commit is contained in:
mscott%netscape.com 1999-03-30 01:15:40 +00:00
parent e1975708cd
commit d4b14fc31b

View File

@ -20,16 +20,9 @@ function Exit()
function CharacterSet(){}
function SetDocumentCharacterSet(aCharset)
{
var appCore = XPAppCoresManager.Find("MsgAppCore");
if (appCore == null) {
dump("StartUp: Creating AppCore\n");
appCore = new MsgAppCore();
}
var appCore = FindMsgAppCore();
if (appCore != null) {
dump(aCharset);dump("\n");
appCore.Init("MsgAppCore");
appCore.SetWindow(window);
appCore.SetDocumentCharset(aCharset);
} else {
dump("MsgAppCore has not been created!\n");
}