Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D2C6417FAC for ; Tue, 7 Oct 2014 21:10:41 +0000 (UTC) Received: (qmail 66619 invoked by uid 500); 7 Oct 2014 21:10:38 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 66580 invoked by uid 500); 7 Oct 2014 21:10:38 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 66567 invoked by uid 99); 7 Oct 2014 21:10:38 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Oct 2014 21:10:38 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id EFF509055E6; Tue, 7 Oct 2014 21:10:37 +0000 (UTC) From: khawkins To: dev@cordova.apache.org Reply-To: dev@cordova.apache.org References: In-Reply-To: Subject: [GitHub] cordova-js pull request: Some user agent-related changes in suppor... Content-Type: text/plain Message-Id: <20141007211037.EFF509055E6@tyr.zones.apache.org> Date: Tue, 7 Oct 2014 21:10:37 +0000 (UTC) Github user khawkins commented on a diff in the pull request: https://github.com/apache/cordova-js/pull/84#discussion_r18549351 --- Diff: src/ios/exec.js --- @@ -230,7 +223,7 @@ function pokeNativeViaXhr() { // Add a timestamp to the query param to prevent caching. execXhr.open('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 infrastructure@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org For additional commands, e-mail: dev-help@cordova.apache.org