1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 20:52:26 +01:00

*** empty log message ***

This commit is contained in:
Kris Maglione
2008-09-18 14:10:02 +00:00
parent 7532d5b50b
commit d8741b5140
3 changed files with 15 additions and 20 deletions

View File

@@ -287,14 +287,18 @@ liberator.util = { //{{{
{
var urls = str.split(new RegExp("\s*" + liberator.options["urlseparator"] + "\s*"));
begin: for (let url = 0; url < urls.length; url++)
for (let url = 0; url < urls.length; url++)
{
var file = liberator.io.getFile(urls[url]);
if (file.exists() && file.isReadable())
try
{
urls[url] = file.path;
continue;
var file = liberator.io.getFile(urls[url]);
if (file.exists() && file.isReadable())
{
urls[url] = file.path;
continue;
}
}
catch (e) {}
// strip each 'URL' - makes things simpler later on
urls[url] = urls[url].replace(/^\s+/, "").replace(/\s+$/, "");