Change event handler type for custom CSS

Closes #2624
This commit is contained in:
Cohee 2024-08-08 00:21:18 +03:00
parent 93c7dd50f5
commit 6e1ba5f7e2

View File

@ -3310,8 +3310,8 @@ $(document).ready(() => {
saveSettingsDebounced();
});
$('#customCSS').on('change', () => {
power_user.custom_css = $('#customCSS').val();
$('#customCSS').on('input', () => {
power_user.custom_css = String($('#customCSS').val());
localStorage.setItem(storage_keys.custom_css, power_user.custom_css);
saveSettingsDebounced();
applyCustomCSS();