mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-20 22:27:31 +09:00
[TychoAM] Make resilient to missing pref lightweightThemes.animation.enabled
This commit is contained in:
parent
c60c15e659
commit
9c9ba7c6c8
1 changed files with 8 additions and 4 deletions
|
|
@ -59,9 +59,13 @@ var ImageCropper = {
|
||||||
return aImageURL;
|
return aImageURL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Services.prefs.getBoolPref("lightweightThemes.animation.enabled")) {
|
try {
|
||||||
//Don't crop if animated
|
if (Services.prefs.getBoolPref("lightweightThemes.animation.enabled")) {
|
||||||
return aImageURL;
|
//Don't crop if animated
|
||||||
|
return aImageURL;
|
||||||
|
}
|
||||||
|
} catch(e) {
|
||||||
|
// Continue of pref doesn't exist.
|
||||||
}
|
}
|
||||||
|
|
||||||
// Generate the cropped image's file name using its
|
// Generate the cropped image's file name using its
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue