This commit is contained in:
pypy
2020-11-07 21:48:42 +09:00
parent e8c75f2ccb
commit e90db57169
2 changed files with 3 additions and 2 deletions

View File

@@ -53,7 +53,7 @@ namespace VRCX
m_MapLock.ExitReadLock();
}
return string.Empty;
return null;
}
public void Set(string key, string value)

View File

@@ -5,10 +5,11 @@ class SharedRepository {
key = transformKey(key);
return SharedVariable.Remove(key);
}
getString(key, defaultValue = null) {
key = transformKey(key);
var value = SharedVariable.Get(key);
if (value === undefined) {
if (value === null) {
return defaultValue;
}
return value;