From b724e811948f4bb99d8d34afdf7299dcdc369a64 Mon Sep 17 00:00:00 2001 From: Martin Stubenschrott Date: Sat, 2 Aug 2008 13:28:56 +0000 Subject: [PATCH] fixed ~ mapping and :open ~ --- content/util.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/content/util.js b/content/util.js index 189b9737..34737f4c 100644 --- a/content/util.js +++ b/content/util.js @@ -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 :) }