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,9 +1,9 @@
|
||||
const config = window.SeasonalsPluginConfig?.Pride || {};
|
||||
|
||||
const enabled = config.EnablePride !== undefined ? config.EnablePride : true;
|
||||
const elementCount = config.HeartCount || 20;
|
||||
const heartSize = config.HeartSize || 1.5;
|
||||
const colorHeader = config.ColorHeader !== undefined ? config.ColorHeader : true;
|
||||
const enabled = config.EnablePride !== undefined ? config.EnablePride : true; // enable/disable pride
|
||||
const elementCount = config.HeartCount !== undefined ? config.HeartCount : 20; // count of heart
|
||||
const heartSize = config.HeartSize !== undefined ? config.HeartSize : 1.5; // size of hearts
|
||||
const colorHeader = config.ColorHeader !== undefined ? config.ColorHeader : true; // optionally color the header with pride colors
|
||||
|
||||
let msgPrinted = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user