]> git.donarmstrong.com Git - dactyl.git/blobdiff - common/content/browser.js
Import r6976 from upstream hg supporting Firefox up to 25.*
[dactyl.git] / common / content / browser.js
index 79d98d2df8fbe57b2b024b557a0307d349d0beef..95c1fd4a8e9586a3dbe3c49399496c0864d460f0 100644 (file)
@@ -1,6 +1,6 @@
 // Copyright (c) 2006-2008 by Martin Stubenschrott <stubenschrott@vimperator.org>
 // Copyright (c) 2007-2011 by Doug Kearns <dougkearns@gmail.com>
-// Copyright (c) 2008-2012 Kris Maglione <maglione.k at Gmail>
+// Copyright (c) 2008-2013 Kris Maglione <maglione.k at Gmail>
 //
 // This work is licensed for reuse under an MIT license. Details are
 // given in the LICENSE.txt file included with this file.
@@ -193,8 +193,8 @@ var Browser = Module("browser", XPCOM(Ci.nsISupportsWeakReference, ModuleBase),
             function (args) { dactyl.open(args[0] || "about:blank"); },
             {
                 completer: function (context) completion.url(context),
-                domains: function (args) array.compact(dactyl.parseURLs(args[0] || "").map(
-                    function (url) util.getHost(url))),
+                domains: function (args) array.compact(dactyl.parseURLs(args[0] || "")
+                                                             .map(url => util.getHost(url))),
                 literal: 0,
                 privateData: true
             });