autoconfig.js: fix indent (MR 19)
This commit is contained in:
parent
a8cbf4f950
commit
5b1ace4f24
1 changed files with 5 additions and 5 deletions
|
@ -13,7 +13,7 @@ Cu.import("resource://gre/modules/FileUtils.jsm");
|
||||||
var chromeDir = Services.dirsvc.get("ProfD", Ci.nsIFile);
|
var chromeDir = Services.dirsvc.get("ProfD", Ci.nsIFile);
|
||||||
chromeDir.append("chrome");
|
chromeDir.append("chrome");
|
||||||
if (!chromeDir.exists()) {
|
if (!chromeDir.exists()) {
|
||||||
chromeDir.create(Ci.nsIFile.DIRECTORY_TYPE, FileUtils.PERMS_DIRECTORY);
|
chromeDir.create(Ci.nsIFile.DIRECTORY_TYPE, FileUtils.PERMS_DIRECTORY);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create nsIFile objects for userChrome.css in <profile>/chrome/ and in /etc/
|
// Create nsIFile objects for userChrome.css in <profile>/chrome/ and in /etc/
|
||||||
|
@ -24,12 +24,12 @@ var defaultChrome = new FileUtils.File("/etc/mobile-config-firefox/userChrome.cs
|
||||||
// Remove the existing userChrome.css if older than the installed one
|
// Remove the existing userChrome.css if older than the installed one
|
||||||
if (chromeFile.exists() && defaultChrome.exists() &&
|
if (chromeFile.exists() && defaultChrome.exists() &&
|
||||||
chromeFile.lastModifiedTime < defaultChrome.lastModifiedTime) {
|
chromeFile.lastModifiedTime < defaultChrome.lastModifiedTime) {
|
||||||
chromeFile.remove(false);
|
chromeFile.remove(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Copy userChrome.css to <profile>/chrome/
|
// Copy userChrome.css to <profile>/chrome/
|
||||||
if (!chromeFile.exists()) {
|
if (!chromeFile.exists()) {
|
||||||
defaultChrome.copyTo(chromeDir, "userChrome.css");
|
defaultChrome.copyTo(chromeDir, "userChrome.css");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create nsIFile objects for userContent.css in <profile>/chrome/ and in /etc/
|
// Create nsIFile objects for userContent.css in <profile>/chrome/ and in /etc/
|
||||||
|
@ -40,12 +40,12 @@ var defaultContent = new FileUtils.File("/etc/mobile-config-firefox/userContent.
|
||||||
// Remove the existing userContent.css if older than the installed one
|
// Remove the existing userContent.css if older than the installed one
|
||||||
if (contentFile.exists() && defaultContent.exists() &&
|
if (contentFile.exists() && defaultContent.exists() &&
|
||||||
contentFile.lastModifiedTime < defaultContent.lastModifiedTime) {
|
contentFile.lastModifiedTime < defaultContent.lastModifiedTime) {
|
||||||
contentFile.remove(false);
|
contentFile.remove(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Copy userContent.css to <profile>/chrome/
|
// Copy userContent.css to <profile>/chrome/
|
||||||
if (!contentFile.exists()) {
|
if (!contentFile.exists()) {
|
||||||
defaultContent.copyTo(chromeDir, "userContent.css");
|
defaultContent.copyTo(chromeDir, "userContent.css");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Select a mobile user agent for firefox (same as tor browser on android)
|
// Select a mobile user agent for firefox (same as tor browser on android)
|
||||||
|
|
Loading…
Reference in a new issue