mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-15 02:32:22 +00:00
Api login party invites (#10486)
* Fixed incorrect variable * Fixed redirect params
This commit is contained in:
parent
0a8109e496
commit
7c141614ed
2 changed files with 3 additions and 3 deletions
|
|
@ -99,13 +99,13 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
receiveMessage (eventFrom) {
|
||||
if (event.origin !== 'https://www.spritely.app') return;
|
||||
if (eventFrom.origin !== 'https://www.spritely.app') return;
|
||||
|
||||
const creds = {
|
||||
userId: this.user._id,
|
||||
apiToken: this.credentials.API_TOKEN,
|
||||
};
|
||||
eventFrom.source.postMessage(creds, event.origin);
|
||||
eventFrom.source.postMessage(creds, eventFrom.origin);
|
||||
},
|
||||
async addWebhook (url) {
|
||||
let webhookInfo = {
|
||||
|
|
|
|||
|
|
@ -297,7 +297,7 @@ router.beforeEach(function routerGuard (to, from, next) {
|
|||
name: redirectTo,
|
||||
query: redirectTo === 'login' ? {
|
||||
redirectTo: to.path,
|
||||
} : null,
|
||||
} : to.query,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue