We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7613645 + 962c940 commit a245f13Copy full SHA for a245f13
src/BranchSubscriber.js
@@ -118,12 +118,18 @@ export default class BranchSubscriber {
118
this._subscribed = false
119
120
if (this.options.onOpenStart) {
121
- this.initSessionStart.remove()
+ if (this.initSessionStart) {
122
+ this.initSessionStart.remove()
123
+ };
124
}
125
126
if (this.options.onOpenComplete) {
- this.initSessionSuccess.remove()
- this.initSessionError.remove()
127
+ if (this.initSessionSuccess) {
128
+ this.initSessionSuccess.remove();
129
+ }
130
+ if (this.initSessionError) {
131
+ this.initSessionError.remove()
132
133
134
135
0 commit comments