1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 18:02:27 +01:00

fixed ~ mapping and :open ~

This commit is contained in:
Martin Stubenschrott
2008-08-02 13:28:56 +00:00
parent f3e7a03e16
commit b724e81194

View File

@@ -282,6 +282,14 @@ liberator.util = { //{{{
begin: for (var url = 0; url < urls.length; url++)
{
var file = liberator.io.getFile(urls[url]);
if (file.exists() && file.isReadable())
{
urls[url] = file.path;
continue;
}
// strip each 'URL' - makes things simpler later on
urls[url] = urls[url].replace(/^\s+/, "").replace(/\s+$/, "");
@@ -313,14 +321,6 @@ liberator.util = { //{{{
}
}
}
var file = liberator.io.getFile(urls[url]);
if (file.exists() && file.isReadable())
{
urls[url] = file.path;
continue;
}
// if we are here let Firefox handle the url and hope it does
// something useful with it :)
}