Skip to content

Commit

Permalink
Fixes for undefined error in 3.32
Browse files Browse the repository at this point in the history
  • Loading branch information
kgshank committed Apr 22, 2022
1 parent 1cf3e19 commit a1d1782
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions [email protected]/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,10 @@ var SDCInstance = class SDCInstance {
}
sliderItem.set_x_expand(true);
sliderItem.set_style('padding-right: 0px;');
sliderItem._ornamentLabel.hide();
if(sliderItem._ornamentLabel)
{
sliderItem._ornamentLabel.hide();
}
sliderItem.set_track_hover(false);
selectorItem.insert_child_above(sliderItem, selectorItem.label);
selectorItem.label.hide();
Expand All @@ -241,7 +244,10 @@ var SDCInstance = class SDCInstance {
}
sliderItem.set_x_expand(false);
sliderItem.set_style('');
sliderItem._ornamentLabel.show();
if(sliderItem._ornamentLabel)
{
sliderItem._ornamentLabel.show();
}
sliderItem.set_track_hover(true);
selectorItem.label.show();
selectorItem.label.get_next_sibling().show(); //expander
Expand Down

0 comments on commit a1d1782

Please sign in to comment.