This commit is contained in:
dougt%meer.net 2005-09-20 21:12:38 +00:00
Родитель ab1d4c6073
Коммит 422f965084
1 изменённых файлов: 11 добавлений и 4 удалений

Просмотреть файл

@ -50,8 +50,6 @@ const static char* start_url = "chrome://minimo/content/minimo.xul";
//const static char* start_url = "http://www.meer.net/~dougt/test.html";
//const static char* start_url = "resource://gre/res/start.html";
PRBool gDumpJSConsole = PR_FALSE;
static NS_DEFINE_CID(kEventQueueServiceCID, NS_EVENTQUEUESERVICE_CID);
static NS_DEFINE_CID(kAppShellCID, NS_APPSHELL_CID);
@ -654,7 +652,16 @@ int main(int argc, char *argv[])
delete appObserver;
delete creatorCallback;
if (gDumpJSConsole)
nsCOMPtr<nsIPrefBranch> prefBranch = do_GetService(NS_PREFSERVICE_CONTRACTID);
if (!prefBranch)
return -1;
PRBool dumpJSConsole = PR_FALSE;
prefBranch->GetBoolPref("config.wince.dumpJSConsole", &dumpJSConsole);
prefBranch = 0;
if (dumpJSConsole)
WriteConsoleLog();
// Close down Embedding APIs