* Bump dev to 2.031.6 * Added prettier (#661) * Added prettier * Added prettier * Added prettier
16 lines
552 B
JavaScript
16 lines
552 B
JavaScript
import { CMOptions } from '../VariablesAndData';
|
|
|
|
/**
|
|
* This function updates the display setting of the two objects created by CM.Disp.CreateWrinklerButtons()
|
|
* It is called by changes in CM.Options.WrinklerButtons
|
|
*/
|
|
export default function ToggleWrinklerButtons() {
|
|
if (CMOptions.WrinklerButtons) {
|
|
l('PopAllNormalWrinklerButton').style.display = '';
|
|
l('PopFattestWrinklerButton').style.display = '';
|
|
} else {
|
|
l('PopAllNormalWrinklerButton').style.display = 'none';
|
|
l('PopFattestWrinklerButton').style.display = 'none';
|
|
}
|
|
}
|