Skip to content
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 race between /send and /sync #373

Merged
merged 9 commits into from
Jun 2, 2021
Merged

Conversation

bwindels
Copy link
Contributor

@bwindels bwindels commented Jun 2, 2021

No description provided.

@bwindels bwindels merged commit aa2e1aa into master Jun 2, 2021
return await navigator.storage.persist();
} else if (document.requestStorageAccess) {
// don't assume browser so we can run in node with fake-idb
const glob = this;
Copy link
Contributor

@MadLittleMods MadLittleMods Jul 21, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't work in strict mode where this is undefined. The SDK hydrogen.cjs.js has "use strict"; at the top.

Docs: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/this#function_context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants