Skip to content

Commit d06ce6e

Browse files
Easier fix
1 parent 0fb85d1 commit d06ce6e

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/backend.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -193,12 +193,7 @@ var _ = Mavo.Backend = class Backend extends EventTarget {
193193
}
194194

195195
addEventListener("message", evt => {
196-
if (evt.source === this.authPopup) {
197-
if (!evt.data.backend) {
198-
// Ignore un-supported events that backend services might send, e.g., messages from Yandex metrics.
199-
return;
200-
}
201-
196+
if (evt.source === this.authPopup && evt.data.backend) {
202197
if (evt.data.backend == this.id) {
203198
this.accessToken = localStorage[`mavo:${id}token`] = evt.data.token;
204199
}

0 commit comments

Comments
 (0)