mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 23:08:39 +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,10 +59,14 @@ var ImageCropper = {
|
|||
return aImageURL;
|
||||
}
|
||||
|
||||
if (Services.prefs.getBoolPref("lightweightThemes.animation.enabled")) {
|
||||
//Don't crop if animated
|
||||
return aImageURL;
|
||||
}
|
||||
try {
|
||||
if (Services.prefs.getBoolPref("lightweightThemes.animation.enabled")) {
|
||||
//Don't crop if animated
|
||||
return aImageURL;
|
||||
}
|
||||
} catch(e) {
|
||||
// Continue of pref doesn't exist.
|
||||
}
|
||||
|
||||
// Generate the cropped image's file name using its
|
||||
// base name and the current screen size.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue