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:
@@ -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(/\/$/))
|
||||
|
||||
Reference in New Issue
Block a user