EddyVerbruggen / nativescript-webview-utils

🕸Add request headers to a NativeScript WebView. Perhaps more utils later.
Apache License 2.0
20 stars 17 forks source link

Remove setUserAgent, and integrate behavior with addHeaders #7

Closed EddyVerbruggen closed 6 years ago

EddyVerbruggen commented 6 years ago

If users need to set both the User-Agent header, and other headers as well, then problems may occur because how that works internally in different browsers. So I've decided to remove setUserAgent and provide a sample how to set it as a custom header (and changed the plugin to handle it properly).