minimal prealpha support (may remove later)

This commit is contained in:
zefie
2025-08-14 20:22:18 -04:00
parent e7d16387da
commit 35a9ae2c8f
5 changed files with 89 additions and 81 deletions

View File

@@ -135,7 +135,7 @@ class WTVClientCapabilities {
}
get(key = null) {
if (typeof (this.capabilities) === 'undefined') return null;
if (typeof (this.capabilities) === 'undefined' || !this.capabilities) return null;
else if (key === null) return this.capabilities;
else if (this.capabilities[key]) return this.capabilities[key];
else return null;