[Fix] Fixed settings crashing with modules using color picker without initial value

pull/36/head
Oj18 3 years ago
parent 7d0326b9d0
commit 171c42d547

@ -11,6 +11,7 @@
- ### Fixes
- Made custom version info in settings more precise and should no longer crash if also using Powercord's BDCompat when opening settings
- Fixed crashes for modules using color picker component in settings without initial value
## v6.0.1 [2021-01-22]

4
dist/index.js vendored

File diff suppressed because one or more lines are too long

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

@ -451,7 +451,7 @@ export const _createItem = (panelName, content) => {
colorEl.classList.add('colorPickerSwatch-5GX3Ve', 'custom-2SJn4n', 'noColor-1pdBDm');
colorEl.value = e.initialValue();
if (e.initialValue) colorEl.value = e.initialValue();
colorEl.oninput = () => {
e.oninput(colorEl.value);
//e.onclick(buttonEl2);

Loading…
Cancel
Save