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

Make library independent from server rendering and web-page context #830

Open
1 of 3 tasks
ShGKme opened this issue Dec 23, 2024 · 0 comments · May be fixed by #832
Open
1 of 3 tasks

Make library independent from server rendering and web-page context #830

ShGKme opened this issue Dec 23, 2024 · 0 comments · May be fixed by #832

Comments

@ShGKme
Copy link
Contributor

ShGKme commented Dec 23, 2024

Currently library can be used only in Nextcloud apps in the main context.

It doesn't work in:

  • Web-browser in Web Workers
  • Node.js (e.g. Talk Desktop main process)
  • Particularly in non-nextcloud apps (date module in UI component docs)

To make it universal we would need:

  • Use globalThis instead of window
  • Use Intl as a fallback in date module
  • Use fetch instead of XHR
@ShGKme ShGKme linked a pull request Dec 23, 2024 that will close this issue
6 tasks
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 a pull request may close this issue.

1 participant