mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 06:47:58 +01:00
Add $VIMPERATOR_RUNTIME, $VIMPERATOR_INIT, ~/.vimperator/info/{profile}.
This commit is contained in:
@@ -745,15 +745,14 @@ function Buffer() //{{{
|
||||
|
||||
// get file size
|
||||
const ACCESS_READ = Ci.nsICache.ACCESS_READ;
|
||||
const cacheService = Cc["@mozilla.org/network/cache-service;1"].getService(Ci.nsICacheService);
|
||||
let cacheKey = doc.location.toString().replace(/#.*$/, "");
|
||||
|
||||
for (let proto in util.Array.iterator(["HTTP", "FTP"]))
|
||||
{
|
||||
try
|
||||
{
|
||||
var cacheEntryDescriptor = cacheService.createSession(proto, 0, true)
|
||||
.openCacheEntry(cacheKey, ACCESS_READ, false);
|
||||
var cacheEntryDescriptor = service["cache"].createSession(proto, 0, true)
|
||||
.openCacheEntry(cacheKey, ACCESS_READ, false);
|
||||
break;
|
||||
}
|
||||
catch (e) {}
|
||||
|
||||
Reference in New Issue
Block a user