Skip to content

Commit

Permalink
Temporarily fix about:config appuri resolving not working.
Browse files Browse the repository at this point in the history
Related to issue #1
  • Loading branch information
nmaier committed Mar 11, 2013
1 parent 97c19e0 commit 3893ce0
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions about.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,16 +169,19 @@ function process(addons) {
console.log("not", spec, known);
return false;
}
function createBar(tr, type, bytes, total, maxb) {
}

try {
// Forcefeed the "Application" add-on
{
let appuri = resolveURI(Services.io.newURI("about:config", null, null));
let iconURL = "chrome://branding/content/icon64.png"
if (!/omni\.ja|\.apk$/.test(appuri.spec)) {
appuri.path = appuri.path.replace("chrome/toolkit/content/global/global.xul", "");
try {
if (!/omni\.ja|\.apk$/.test(appuri.spec)) {
appuri.path = appuri.path.replace("chrome/toolkit/content/global/global.xul", "");
}
}
catch (ex) {
console.log("failed to get proper appuri; assuming omnijar");
}
if (/\.apk$/.test(appuri.spec)) {
iconURL = "chrome://branding/content/favicon64.png"
Expand Down

0 comments on commit 3893ce0

Please sign in to comment.