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

Client: add cspInfo call to cspUrl #375

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

NateWilliams2
Copy link
Contributor

Adds a call to cspUrl() in client.cspInfo().

This fixes a behavior where client.cspInfo() would return a No CSP URL set error when called before the client has registered any voters. This is because the CSP URL is currently only set during cspStep for voter validation.

Target behavior: client.cspInfo() should be usable once the client has created an election using a CSP census, even if no voters have registered.

Copy link

size-limit report 📦

Path Size
dist/index.js 1.54 MB (+0.01% 🔺)
dist/index.mjs 1.54 MB (+0.01% 🔺)
dist/index.umd.js 1.54 MB (+0.01% 🔺)

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.

1 participant