grim/port-authority

cef04d0cf2bc
Parents b7fcc5bbacc7
Children 79e1d0b01380
prepend http:// to the registry if it doesn't start with https?://
  • +4 -0
    js/app.js
  • --- a/js/app.js Wed Dec 03 14:26:35 2014 -0600
    +++ b/js/app.js Sat Dec 06 18:38:02 2014 -0600
    @@ -36,6 +36,10 @@
    $scope.repo = null;
    $scope.refresh = function() {
    + if($scope.registry.indexOf("http://") !== 0 && $scope.registry.indexOf("http://") !== 0) {
    + $scope.registry = "http://" + $scope.registry;
    + }
    +
    manifestREST.list($scope.registry)
    .success(function(data, status, headers, config) {
    $scope.repos = data.results.map(function(repo) {