cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From khawkins <>
Subject [GitHub] cordova-ios pull request: Creating a customizable user agent for i...
Date Sun, 05 Oct 2014 03:20:14 GMT
Github user khawkins commented on a diff in the pull request:
    --- Diff: CordovaLib/cordova.js ---
    @@ -1017,7 +1010,7 @@ function pokeNativeViaXhr() {
         // Add a timestamp to the query param to prevent caching.'HEAD', "/!gap_exec?" + (+new Date()), true);
         if (!vcHeaderValue) {
    -        vcHeaderValue = /.*\((.*)\)/.exec(navigator.userAgent)[1];
    +        vcHeaderValue = /.*\((.*)\)$/.exec(navigator.userAgent)[1];
    --- End diff --
    In the wake of configurable user agents, this is more deterministic.

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message