Skip to content

Instantly share code, notes, and snippets.

function main(args, namedArgs)
{
// FIXME: This code should be in Objective-J.
var args = window.location.hash.replace("#", "").split("/").slice(0),
searchParams = window.location.search.substring(1).split("&");
namedArgs = [CPDictionary dictionary];
for(var i=0, count = args.length; i<count; i++)
args[i] = decodeURIComponent(args[i]);