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

replaceAll is not a function #407

Closed
jcardus opened this issue Dec 1, 2022 · 4 comments
Closed

replaceAll is not a function #407

jcardus opened this issue Dec 1, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@jcardus
Copy link

jcardus commented Dec 1, 2022

I'm having no text when I run this on a huwaei device in a capacitor app. I also get this error on sentry.
I suspect it's the webview in this case doesn't have replaceAll. I'm still investigating.

I'll fork the project to remove the replaceAll and see if it has any impact.

imagen
Screenshot 2022-12-01 at 12 04 47

@jcardus jcardus added the bug Something isn't working label Dec 1, 2022
@jcardus
Copy link
Author

jcardus commented Dec 1, 2022

In the screen the chrome mobile view version is not showing, but its Chrome Mobile WebView 83.0.4103. According to this, replaceAll is only available since 85.

@jcardus
Copy link
Author

jcardus commented Dec 1, 2022

I can confirm that was the issue. I added this polyfill in my app and it worked.

@jcardus jcardus closed this as completed Dec 1, 2022
@zslzz
Copy link

zslzz commented Jun 2, 2024

@jcardus I have met this issue too, could you share your polyfill link? Thanks very much!

@jcardus
Copy link
Author

jcardus commented Jun 2, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants