mirror of
https://github.com/BililiveRecorder/BililiveRecorder.git
synced 2024-11-16 11:42:22 +08:00
fix(core): sharedStorage.keys
incorrectly returns null
(#458)
This commit is contained in:
parent
3b83a16bc7
commit
fee7e6c059
|
@ -11,7 +11,7 @@ namespace BililiveRecorder.Core.Scripting.Runtime
|
|||
public void SetItem(string key, string value) => this.storage[key] = value;
|
||||
public void RemoveItem(string key) => this.storage.Remove(key);
|
||||
public void Clear() => this.storage.Clear();
|
||||
public string? Key(int index) => this.storage.Count < index ? this.storage.Keys.ElementAt(index) : null;
|
||||
public string? Key(int index) => this.storage.Count > index ? this.storage.Keys.ElementAt(index) : null;
|
||||
public int Length => this.storage.Count;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user