Refactor seasonal plugin configurations to improve clarity and consistency
- Updated comments for clarity on enabling/disabling features across various seasonal scripts. - Changed default value checks to ensure undefined values are handled consistently. - Enhanced readability by providing descriptive comments for configuration variables. [skip ci]
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
const config = window.SeasonalsPluginConfig?.Summer || {};
|
||||
|
||||
const summer = config.EnableSummer !== undefined ? config.EnableSummer : true; // Enable/disable summer theme
|
||||
const bubbleCount = config.BubbleCount || 30; // Number of bubbles
|
||||
const dustCount = config.DustCount || 50; // Number of dust particles
|
||||
const summer = config.EnableSummer !== undefined ? config.EnableSummer : true; // enable/disable summer
|
||||
const bubbleCount = config.BubbleCount !== undefined ? config.BubbleCount : 30; // count of bubbles
|
||||
const dustCount = config.DustCount !== undefined ? config.DustCount : 50; // count of dust particles
|
||||
const symbolCountMobile = config.SymbolCountMobile !== undefined ? config.SymbolCountMobile : 2; // Devisor to reduce number of objects on mobile
|
||||
const enableDifferentDuration = config.EnableDifferentDuration !== undefined ? config.EnableDifferentDuration : true; // Randomize animation duration of bubbles and dust
|
||||
const enableDifferentDuration = config.EnableDifferentDuration !== undefined ? config.EnableDifferentDuration : true; // enable different durations
|
||||
|
||||
let msgPrinted = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user