Changed the DoPreferences function.

This commit is contained in:
mcmullen%netscape.com 1999-04-01 20:01:54 +00:00
parent 3a370ba4d6
commit 5ab57c47d6

View File

@ -309,16 +309,15 @@
function DoPreferences() function DoPreferences()
{ {
var toolkitCore = XPAppCoresManager.Find("ToolkitCore"); var prefsCore = XPAppCoresManager.Find("PrefsCore");
if (!toolkitCore) { if (!prefsCore) {
toolkitCore = new ToolkitCore(); prefsCore = new PrefsCore();
if (toolkitCore) { if (prefsCore) {
toolkitCore.Init("ToolkitCore"); prefsCore.Init("PrefsCore");
} }
} }
if (toolkitCore) { if (prefsCore) {
toolkitCore.ShowWindow("resource:/res/samples/PrefsWindow.html", prefsCore.ShowWindow(window);
window);
} }
} }