repo.or.cz
/
KisSync.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
duplicate saftey
[KisSync.git]
/
src
/
switches.js
blob
59b2f10766eea099a904a1ae6b9141e8bb9bfa8d
1
const switches = {
2
};
3
4
export function isActive(switchName) {
5
return switches.hasOwnProperty(switchName) && switches[switchName] === true;
6
}
7
8
export function setActive(switchName, active) {
9
switches[switchName] = active;
10
}