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: Support for KaiOS 2.5 #83 #97

Merged
merged 1 commit into from Jan 11, 2023

Conversation

andre-dietrich
Copy link
Contributor

Two changes were necessary to run easy-speech on KaiOS:

  1. An additional KaiOS check is added, based on the user navigator, this if it succeeds, it is treated as a isFirefox. The original test fails, since KaiOS (2.5) uses version 49, an older one. However, the TTS functionality is the same.
  2. globalThis is not defined in KaiOS 2.5, which causes a ReferenceError and thus, the entire lib to fail. That is why an additional check was added.

However, the resulting output still needs to be transpiled with babel, since the KaiOS browser does not support es6 syntax.

Two changes were necessary to run easy-speech on KaiOS:

1. An additional KaiOS check is added, based on the user navigator, this
   if it succeeds, it is treated as a isFirefox. The original test
   fails, since KaiOS (2.5) uses version 49, an older one. However, the
   TTS functionality is the same.
2. `globalThis` is not defined in KaiOS 2.5, which causes a
   ReferenceError and thus, the entire lib to fail. That is why an
   additional check was added.

However, the resulting output still needs to be transpiled with babel,
since the KaiOS browser does not support es6 syntax.
index.js Show resolved Hide resolved
@jankapunkt jankapunkt merged commit 3e6ea63 into jankapunkt:master Jan 11, 2023
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.

None yet

2 participants