mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 15:23:51 +00:00
Bug 888585 - Don't load LightweightThemeImageOptimizer during start-up for users who don't have a lightweight theme applied. r=MattN
This commit is contained in:
parent
528bf43628
commit
97c0f7ba63
@ -73,11 +73,13 @@ LightweightThemeConsumer.prototype = {
|
||||
},
|
||||
|
||||
_update: function (aData) {
|
||||
if (!aData)
|
||||
if (!aData) {
|
||||
aData = { headerURL: "", footerURL: "", textcolor: "", accentcolor: "" };
|
||||
|
||||
this._lastData = aData;
|
||||
aData = LightweightThemeImageOptimizer.optimize(aData, this._win.screen);
|
||||
this._lastData = aData;
|
||||
} else {
|
||||
this._lastData = aData;
|
||||
aData = LightweightThemeImageOptimizer.optimize(aData, this._win.screen);
|
||||
}
|
||||
|
||||
var root = this._doc.documentElement;
|
||||
var active = !!aData.headerURL;
|
||||
|
Loading…
Reference in New Issue
Block a user