mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-12 21:51:28 +00:00
Fix a bug where press was clobbering CPApplication arguments.
Also changed line endings to Mac/Unix from Windows.
This commit is contained in:
@@ -772,14 +772,18 @@ function CPApplicationMain(args, namedArgs)
|
||||
[principalClass sharedApplication];
|
||||
|
||||
//FIXME?
|
||||
if (!args && !namedArgs)
|
||||
if (!args)
|
||||
{
|
||||
var args = [CPApp arguments],
|
||||
searchParams = window.location.search.substring(1).split("&");
|
||||
namedArgs = [CPDictionary dictionary];
|
||||
var args = [CPApp arguments];
|
||||
|
||||
if([args containsObject:"debug"])
|
||||
CPLogRegister(CPLogPopup);
|
||||
}
|
||||
|
||||
if (!namedArgs)
|
||||
{
|
||||
var searchParams = window.location.search.substring(1).split("&");
|
||||
namedArgs = [CPDictionary dictionary];
|
||||
|
||||
for(var i=0; i<searchParams.length; i++)
|
||||
{
|
||||
|
||||
+585
-585
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user