зеркало из https://github.com/mozilla/pjs.git
Bug 299458 - Install ChatZilla icon when running in XULRunner.
ChatZilla only. r=samuel
This commit is contained in:
Родитель
27caea093b
Коммит
7c92265e92
|
@ -411,14 +411,26 @@ function initIcons()
|
|||
|
||||
/* when installing on Mozilla, the XPI has the power to put the icons where
|
||||
* they are needed - in Firefox, it doesn't. So we move them here, instead.
|
||||
* In XULRunner, things are more fun, as we're not an extension.
|
||||
*/
|
||||
if (client.host != "Firefox")
|
||||
var sourceDir;
|
||||
if (client.host == "Firefox")
|
||||
{
|
||||
sourceDir = getSpecialDirectory("ProfD");
|
||||
sourceDir.append("extensions");
|
||||
sourceDir.append("{" + __cz_guid + "}");
|
||||
sourceDir.append("defaults");
|
||||
}
|
||||
else if (client.host == "XULrunner")
|
||||
{
|
||||
sourceDir = getSpecialDirectory("resource:app");
|
||||
sourceDir.append("chrome");
|
||||
sourceDir.append("icons");
|
||||
}
|
||||
else
|
||||
{
|
||||
return;
|
||||
|
||||
var sourceDir = getSpecialDirectory("ProfD");
|
||||
sourceDir.append("extensions");
|
||||
sourceDir.append("{" + __cz_guid + "}");
|
||||
sourceDir.append("defaults");
|
||||
}
|
||||
|
||||
var destDir = getSpecialDirectory("AChrom");
|
||||
destDir.append("icons");
|
||||
|
|
Загрузка…
Ссылка в новой задаче