add removing config by key

This commit is contained in:
pypy
2020-11-07 21:48:32 +09:00
parent 999b718b46
commit e8c75f2ccb
2 changed files with 34 additions and 16 deletions

View File

@@ -1,6 +1,10 @@
// requires binding of SharedVariable
class SharedRepository {
remove(key) {
key = transformKey(key);
return SharedVariable.Remove(key);
}
getString(key, defaultValue = null) {
key = transformKey(key);
var value = SharedVariable.Get(key);