1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-31 14:05:45 +01: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

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];