1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-05-02 07:20:51 +02:00

Fix some general brokenness.

--HG--
branch : testing
This commit is contained in:
Kris Maglione
2010-05-11 06:01:02 -04:00
parent bf5fb6d44e
commit 7a3d35991c
4 changed files with 17 additions and 10 deletions
+1 -2
View File
@@ -366,7 +366,6 @@ const Bookmarks = Module("bookmarks", {
// ripped from Firefox
function getShortcutOrURI(url) {
var shortcutURL = null;
var keyword = url;
var param = "";
var offset = url.indexOf(" ");
@@ -381,7 +380,7 @@ const Bookmarks = Module("bookmarks", {
return [submission.uri.spec, submission.postData];
}
[shortcutURL, postData] = PlacesUtils.getURLAndPostDataForKeyword(keyword);
let [shortcutURL, postData] = PlacesUtils.getURLAndPostDataForKeyword(keyword);
if (!shortcutURL)
return [url, null];