diff --git a/BililiveRecorder.Core/Scripting/Runtime/JintStorage.cs b/BililiveRecorder.Core/Scripting/Runtime/JintStorage.cs index 6bebe0b..1ae5d20 100644 --- a/BililiveRecorder.Core/Scripting/Runtime/JintStorage.cs +++ b/BililiveRecorder.Core/Scripting/Runtime/JintStorage.cs @@ -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; } }