-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix issue with capabilities component #525
Conversation
app ? [ [ "appFolder", `${app.creator}/${app.name}` ] ] : [], | ||
fs?.private ? fs.private.map(p => [ "privatePath", Path.toPosix(p, { absolute: true }) ]) : [], | ||
fs?.public ? fs.public.map(p => [ "publicPath", Path.toPosix(p, { absolute: true }) ]) : [], | ||
raw ? [ [ "raw", Base64.urlEncode(JSON.stringify(raw)) ] ] : [], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really need to add a commit hook with some default formatting 😅 I switched editors.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, that particular formatting comes up fairly often. Agreed a hook would be nice for it. 💯
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Looks good. 🎉
Left one comment about naming where it looks like we went back to "webnative".
app ? [ [ "appFolder", `${app.creator}/${app.name}` ] ] : [], | ||
fs?.private ? fs.private.map(p => [ "privatePath", Path.toPosix(p, { absolute: true }) ]) : [], | ||
fs?.public ? fs.public.map(p => [ "publicPath", Path.toPosix(p, { absolute: true }) ]) : [], | ||
raw ? [ [ "raw", Base64.urlEncode(JSON.stringify(raw)) ] ] : [], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, that particular formatting comes up fairly often. Agreed a hook would be nice for it. 💯
@@ -202,7 +188,7 @@ async function getClassifiedViaPostMessage( | |||
} | |||
|
|||
const message = { | |||
odd: "exchange-secrets", | |||
webnative: "exchange-secrets", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we update the lobby to expect odd
instead of webnative
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I'll make it so that it supports both 👍
]) | ||
return new Promise((resolve, reject) => { | ||
if (options.tries > 0) { | ||
const unoMas = () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Claro que si. Uno mas esta bien. 😄
Turns out it didn't work after all when changing the message passed to
postMessage
🙈 Also got rid of thevia-postmessage
check which added support for the old lobby which has long been deprecated for a while, and improved the retry function which wasn't working well (actually ran the action 20 times even though initial one succeeded).