This repository has been archived by the owner on Aug 31, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #197 from umts/redirect
Enable Redirecting to External URLs
- Loading branch information
Showing
10 changed files
with
64 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
plugins | ||
|
||
platforms/android/* | ||
|
||
platforms/ios/* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"ios": "3.9.2", | ||
"android": "4.1.1" | ||
"ios": "4.1.1", | ||
"android": "5.1.1" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,26 @@ | ||
angular.module('pvta.controllers').controller('AboutController', function ($scope, Info) { | ||
angular.module('pvta.controllers').controller('AboutController', function ($scope, $window, Info) { | ||
ga('set', 'page', '/about.html'); | ||
ga('send', 'pageview'); | ||
$scope.vNum = Info.versionNum; | ||
$scope.vName = Info.versionName; | ||
/* | ||
Opens a given URL in the browser. | ||
*/ | ||
$scope.openLink = function (url) { | ||
console.log('Opening ' + url + ' in the browser'); | ||
// If we're on a device, we have to use cordova | ||
// to open the default browser | ||
if ($window.cordova) { | ||
// We have to make sure that cordova is properly loaded before | ||
// using one of its plugins. | ||
document.addEventListener('deviceready', function () { | ||
cordova.InAppBrowser.open(url, '_system'); | ||
}, false); | ||
} | ||
// If we're running as a web-app in a standard browser, | ||
// we can just open the link in a new tab. | ||
else { | ||
$window.open(url); | ||
} | ||
}; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters