sync/src/switches.js

11 lines
231 B
JavaScript

const switches = {
};
export function isActive(switchName) {
return switches.hasOwnProperty(switchName) && switches[switchName] === true;
}
export function setActive(switchName, active) {
switches[switchName] = active;
}