[*Theme] Don't convert hash color

This commit is contained in:
Ducko 2021-06-24 13:10:38 +01:00 committed by Alyxia Sother
parent d05b6c17c5
commit 4adf688ee8
No known key found for this signature in database
GPG Key ID: 355968D14144B739
1 changed files with 1 additions and 1 deletions

View File

@ -122,7 +122,7 @@ export default (manifest, _content, repo) => {
.replace('Dnd', 'DND')}',
oninput: (val) => {
${x[2] === 'color' && x[1][0] !== '#' ? `val = parseInt(val.substring(1, 3), 16).toString() + ', ' + parseInt(val.substring(3, 5), 16).toString() + ', ' + parseInt(val.substring(5, 7), 16).toString()` : ''}
${''/* x[2] === 'color' && x[1][0] !== '#' ? `val = 'rgb(' + parseInt(val.substring(1, 3), 16).toString() + ', ' + parseInt(val.substring(3, 5), 16).toString() + ', ' + parseInt(val.substring(5, 7), 16).toString() + ')'` : '' */}
document.body.style.setProperty('${x[0]}', val);
},