Skip to content

Commit

Permalink
chore: Sync Theme-Customs
Browse files Browse the repository at this point in the history
Signed-off-by: Diego Andrés <[email protected]>
  • Loading branch information
DiegoAndresCortes committed Sep 23, 2024
1 parent 5251d32 commit 4cbdfb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion themecustoms/Color/Variants.php
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ public function settings(array &$theme_settings, array &$settings_types) : void

// Change the thumbnail on selection
addInlineJavaScript('
document.querySelector(\'#options_variant\').addEventListener(\'change\', function() {
document.querySelector(\'#options_variant\')?.addEventListener(\'change\', function() {
let thumbnail = document.querySelector(\'#variant_preview\');
let variant = \'_\' + this.value;
thumbnail.src = smf_images_url + \'/thumbnail\' + (this.value === \'default\' ? \'\' : variant) + \'.png\';
Expand Down

0 comments on commit 4cbdfb0

Please sign in to comment.