forem / ForemWebView-ios

Forem core interface SDK
GNU General Public License v3.0
22 stars 7 forks source link

Navigator API availability fix without reload #35

Closed fdocr closed 3 years ago

fdocr commented 3 years ago

This PR changes the way the custom UserAgent is registered on the ForemWebView instance.

Using self.customUserAgent to assign a custom UserAgent was causing issues. This change now relies on applicationNameForUserAgent instead and it makes sure this configuration is set before the WKWebView is instantiated (otherwise we ran into other problems).

Closes https://github.com/forem/forem-ios/issues/60