Skip to content
This repository was archived by the owner on Sep 29, 2023. It is now read-only.

Use userAgentFallback for userAgent injection - #1316

Merged
ronjouch merged 1 commit into
nativefier:masterfrom
TheCleric:fix/userAgentFallback_for_userAgent_injection
Nov 29, 2021
Merged

ronjouch merged 1 commit into
nativefier:masterfrom
TheCleric:fix/userAgentFallback_for_userAgent_injection

Conversation

@TheCleric

Copy link
Copy Markdown
Collaborator

@ronjouch per the suggestion of @fireflinchdev , this seems to alleviate our issues with things like nuking service workers for WhatsApp. The core reason being those service workers were getting the original userAgent, and not the override (if specified). This PR should fix that.

So it should resolve #1312 #719 and hopefully a few future issues as this seems to come up frequently.

@ronjouch ronjouch left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Neat 👍.

@ronjouch
ronjouch merged commit 5f02f14 into nativefier:master Nov 29, 2021
@TheCleric
TheCleric deleted the fix/userAgentFallback_for_userAgent_injection branch December 4, 2021 16:40
Adam777Z pushed a commit to Adam777Z/nativefier that referenced this pull request Nov 9, 2022
Per the suggestion of @fireflinchdev , this seems to alleviate our issues with things like nuking service workers for WhatsApp. The core reason being those service workers were getting the original userAgent, and not the override (if specified). This PR should fix that.

So it should resolve nativefier#1312 nativefier#719 and hopefully a few future issues as this seems to come up frequently.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

2 participants