mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-05 00:55:48 +01:00
Don't use window.makeURI in bookmarks.js.
This commit is contained in:
@@ -311,7 +311,7 @@ var Bookmarks = Module("bookmarks", {
|
||||
[, shortcutURL, charset] = matches;
|
||||
else {
|
||||
try {
|
||||
charset = services.history.getCharsetForURI(window.makeURI(shortcutURL));
|
||||
charset = services.history.getCharsetForURI(util.newURI(shortcutURL));
|
||||
}
|
||||
catch (e) {}
|
||||
}
|
||||
@@ -620,7 +620,7 @@ var Bookmarks = Module("bookmarks", {
|
||||
context.generate = function () {
|
||||
let [begin, end] = item.url.split("%s");
|
||||
|
||||
return history.get({ uri: window.makeURI(begin), uriIsPrefix: true }).map(function (item) {
|
||||
return history.get({ uri: util.newURI(begin), uriIsPrefix: true }).map(function (item) {
|
||||
let rest = item.url.length - end.length;
|
||||
let query = item.url.substring(begin.length, rest);
|
||||
if (item.url.substr(rest) == end && query.indexOf("&") == -1)
|
||||
|
||||
Reference in New Issue
Block a user