mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 16:17:59 +01:00
Fix loading locale files from XPI.
This commit is contained in:
2
common/bootstrap.js
vendored
2
common/bootstrap.js
vendored
@@ -125,7 +125,7 @@ function init() {
|
||||
switch(fields[0]) {
|
||||
case "#":
|
||||
if (fields[1] == "Suffix:")
|
||||
var suffix = fields[1];
|
||||
var suffix = "-" + fields[2];
|
||||
break;
|
||||
|
||||
case "category":
|
||||
|
||||
@@ -132,7 +132,7 @@
|
||||
<html dactyl:highlight="Help">
|
||||
<head>
|
||||
<title><xsl:value-of select="/dactyl:document/@title"/></title>
|
||||
<script type="text/javascript" src="chrome://dactyl/content/help.js"/>
|
||||
<script type="text/javascript" src="resource://dactyl-content/help.js"/>
|
||||
</head>
|
||||
<body dactyl:highlight="HelpBody">
|
||||
<xsl:apply-templates select="$root2/node()|$root2/@*" mode="help-1"/>
|
||||
|
||||
@@ -314,8 +314,11 @@ var IO = Module("io", {
|
||||
// let jar = services.zipReader.getZip(file); Crashes.
|
||||
let jar = services.ZipReader(file);
|
||||
try {
|
||||
for (let entry in jar.findEntries("*"))
|
||||
if (filter.test(s))
|
||||
let filter = RegExp("^" + util.regexp.escape(decodeURI(path))
|
||||
+ "[^/]*/?$");
|
||||
|
||||
for (let entry in iter(jar.findEntries("*")))
|
||||
if (filter.test(entry))
|
||||
yield entry;
|
||||
}
|
||||
finally {
|
||||
|
||||
Reference in New Issue
Block a user