1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-09 10:24:11 +01:00

Fix help.

This commit is contained in:
Kris Maglione
2012-01-30 08:05:12 -05:00
parent b17be0ca1c
commit 7e3868c15e
2 changed files with 2 additions and 2 deletions

View File

@@ -185,7 +185,7 @@ function XMLChannel(uri, contentType, noErrorChannel, unprivileged) {
this.channel.owner = systemPrincipal;
let type = this.channel.contentType;
if (type.indexOf("text/") == 0 || type.indexOf("+xml") == type.length - 4) {
if (/^text\/|[\/+]xml$/.test(type)) {
let stream = services.InputStream(channelStream);
let [, pre, doctype, url, extra, open, post] = util.regexp(<![CDATA[
^ ([^]*?)