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()
{
var toolkitCore = XPAppCoresManager.Find("ToolkitCore");
if (!toolkitCore) {
toolkitCore = new ToolkitCore();
if (toolkitCore) {
toolkitCore.Init("ToolkitCore");
var prefsCore = XPAppCoresManager.Find("PrefsCore");
if (!prefsCore) {
prefsCore = new PrefsCore();
if (prefsCore) {
prefsCore.Init("PrefsCore");
}
}
if (toolkitCore) {
toolkitCore.ShowWindow("resource:/res/samples/PrefsWindow.html",
window);
if (prefsCore) {
prefsCore.ShowWindow(window);
}
}