mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 18:47:58 +01:00
Add tests for dead help links. Fix some minor bugs. Show error when trying to modify a builtin group rather than failing silently.
This commit is contained in:
@@ -188,6 +188,7 @@ Dactyl.prototype = {
|
||||
return redirect("dactyl://help/" + tag, uri);
|
||||
if (tag in this.HELP_TAGS)
|
||||
return redirect("dactyl://help/" + this.HELP_TAGS[tag] + "#" + tag.replace(/#/g, encodeURIComponent), uri);
|
||||
break;
|
||||
case "locale":
|
||||
return makeChannel(["resource://dactyl-locale", config.locale, path].join("/"), uri);
|
||||
case "locale-local":
|
||||
@@ -228,7 +229,7 @@ function StringChannel(data, contentType, uri) {
|
||||
}
|
||||
|
||||
function XMLChannel(uri, contentType) {
|
||||
let channel = services.io.newChannelFromURI(uri);
|
||||
var channel = services.io.newChannelFromURI(uri);
|
||||
try {
|
||||
var channelStream = channel.open();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user