mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 18:07:58 +01:00
Fix bug in parseForm.
This commit is contained in:
@@ -105,7 +105,7 @@ var Bookmarks = Module("bookmarks", {
|
||||
*/
|
||||
addSearchKeyword: function (elem) {
|
||||
if (elem instanceof HTMLFormElement || elem.form)
|
||||
var [url, post,, charset] = util.parseForm(elem);
|
||||
var [url, post, charset] = util.parseForm(elem);
|
||||
else
|
||||
var [url, post, charset] = [elem.href || elem.src, null, elem.ownerDocument.characterSet];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user