mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-22 08:45:45 +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;
|
[, shortcutURL, charset] = matches;
|
||||||
else {
|
else {
|
||||||
try {
|
try {
|
||||||
charset = services.history.getCharsetForURI(window.makeURI(shortcutURL));
|
charset = services.history.getCharsetForURI(util.newURI(shortcutURL));
|
||||||
}
|
}
|
||||||
catch (e) {}
|
catch (e) {}
|
||||||
}
|
}
|
||||||
@@ -620,7 +620,7 @@ var Bookmarks = Module("bookmarks", {
|
|||||||
context.generate = function () {
|
context.generate = function () {
|
||||||
let [begin, end] = item.url.split("%s");
|
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 rest = item.url.length - end.length;
|
||||||
let query = item.url.substring(begin.length, rest);
|
let query = item.url.substring(begin.length, rest);
|
||||||
if (item.url.substr(rest) == end && query.indexOf("&") == -1)
|
if (item.url.substr(rest) == end && query.indexOf("&") == -1)
|
||||||
|
|||||||
Reference in New Issue
Block a user