1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-29 07:22:26 +01:00

merge new vimperator.io object

This commit is contained in:
Doug Kearns
2007-10-22 02:55:52 +00:00
parent dd3196f0b4
commit 05ab034753
4 changed files with 230 additions and 287 deletions

View File

@@ -864,14 +864,11 @@ function Mappings() //{{{
if (url.match(/^file:\/\//) || url.match(/^\//))
{
var stripedFilename = url.replace(/^(file:\/\/)?(.*)/, "$2");
var file = vimperator.io.fopen(stripedFilename, '<');
if (!file)
var file = vimperator.io.getFile(stripedFilename);
if (!file || !file.isDirectory())
return false;
if (file.localFile.isDirectory())
return true;
else
return false;
return true;
}
// for all other locations just check if the URL ends with /
if (url.match(/\/$/))