update: add isMiniBrowser() to WTVClientSessionData for easier detection of MiniBrowser.
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user