fix(sdk): send initial screen view after next tick
This commit is contained in:
@@ -38,6 +38,7 @@ export class OpenPanel extends OpenPanelBase {
|
||||
|
||||
if (this.options.trackScreenViews) {
|
||||
this.trackScreenViews();
|
||||
setTimeout(() => this.screenView(), 0);
|
||||
}
|
||||
|
||||
if (this.options.trackOutgoingLinks) {
|
||||
@@ -88,8 +89,6 @@ export class OpenPanel extends OpenPanelBase {
|
||||
return;
|
||||
}
|
||||
|
||||
this.screenView();
|
||||
|
||||
const oldPushState = history.pushState;
|
||||
history.pushState = function pushState(...args) {
|
||||
const ret = oldPushState.apply(this, args);
|
||||
|
||||
Reference in New Issue
Block a user