mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-05 20:34:11 +01:00
Add first crude binary module implementation.
This commit is contained in:
@@ -636,7 +636,7 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
|
||||
return File(uri);
|
||||
|
||||
let channel = services.io.newChannelFromURI(uri);
|
||||
channel.cancel(Cr.NS_BINDING_ABORTED);
|
||||
try { channel.cancel(Cr.NS_BINDING_ABORTED); } catch (e) {}
|
||||
if (channel instanceof Ci.nsIFileChannel)
|
||||
return File(channel.file);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user