flush requests queue
parent
b01055f962
commit
72f6aa61dd
|
@ -393,6 +393,11 @@ export default class CountlyAnalytics {
|
||||||
if (!this.disabled && this.anonymous === anonymous) return;
|
if (!this.disabled && this.anonymous === anonymous) return;
|
||||||
if (!this.canEnable()) return;
|
if (!this.canEnable()) return;
|
||||||
|
|
||||||
|
if (!this.disabled) {
|
||||||
|
// flush request queue as our userKey is going to change, no need to await it
|
||||||
|
this.request();
|
||||||
|
}
|
||||||
|
|
||||||
const config = SdkConfig.get();
|
const config = SdkConfig.get();
|
||||||
this.baseUrl = new URL("/i", config.countly.url);
|
this.baseUrl = new URL("/i", config.countly.url);
|
||||||
this.appKey = config.countly.appKey;
|
this.appKey = config.countly.appKey;
|
||||||
|
|
Loading…
Reference in New Issue