mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-04 18:54:13 +01:00
Fix :tabdo.
This commit is contained in:
@@ -470,6 +470,9 @@ const Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference])
|
||||
* @param {nsIURI} uri The URI for which to find a file.
|
||||
*/
|
||||
getFile: function getFile(uri) {
|
||||
if (isString(uri))
|
||||
uri = util.newURI(uri);
|
||||
|
||||
if (uri instanceof Ci.nsIFileURL)
|
||||
return File(uri.QueryInterface(Ci.nsIFileURL).file);
|
||||
let channel = services.io.newChannelFromURI(uri);
|
||||
|
||||
Reference in New Issue
Block a user