1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-04 00:54:14 +01:00

new vimperator.io. object

This commit is contained in:
Martin Stubenschrott
2007-10-19 03:45:11 +00:00
parent edce7ff639
commit 86b4b1ed09
4 changed files with 239 additions and 310 deletions

View File

@@ -967,14 +967,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(/\/$/))