CyTube/src/switches.js
2017-07-02 22:35:12 -07:00

10 lines
230 B
JavaScript

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