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.
1 parent 0fb85d1 commit d06ce6eCopy full SHA for d06ce6e
src/backend.js
@@ -193,12 +193,7 @@ var _ = Mavo.Backend = class Backend extends EventTarget {
193
}
194
195
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
-
+ if (evt.source === this.authPopup && evt.data.backend) {
202
if (evt.data.backend == this.id) {
203
this.accessToken = localStorage[`mavo:${id}token`] = evt.data.token;
204
0 commit comments