mirror of
https://github.com/mifi/lossless-cut.git
synced 2024-11-22 18:32:34 +01:00
add reset function for configstore
This commit is contained in:
parent
bd6772c405
commit
d4a9f83c9d
@ -85,8 +85,13 @@ function set(key, val) {
|
|||||||
else store.set(key, val);
|
else store.set(key, val);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function reset(key) {
|
||||||
|
set(key, defaults[key]);
|
||||||
|
}
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
init,
|
init,
|
||||||
get,
|
get,
|
||||||
set,
|
set,
|
||||||
|
reset,
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user