update: add isMiniBrowser() to WTVClientSessionData for easier detection of MiniBrowser.

This commit is contained in:
zefie
2021-07-26 06:18:03 -04:00
parent 41b4deb831
commit 7826891070

View File

@@ -22,6 +22,11 @@ class WTVClientSessionData {
return false; return false;
} }
isMiniBrowser() {
if (this.data_store['wtv-need-upgrade'] || this.data_store['wtv-used-8675309']) return true;
return false;
}
get(key = null) { get(key = null) {
if (typeof (this.data_store) === 'undefined') return null; if (typeof (this.data_store) === 'undefined') return null;
else if (key === null) return this.data_store; else if (key === null) return this.data_store;