grim/port-authority

Parents 090954d65f88
Children 8c34ca6b2ca4
remove the hljs dependency that I just removed and finally fix the clipboard thing to remove the schema
  • +10 -2
    js/app.js
  • --- a/js/app.js Thu Mar 12 23:19:49 2015 -0500
    +++ b/js/app.js Thu Mar 12 23:28:13 2015 -0500
    @@ -1,4 +1,4 @@
    -var manifest = angular.module("manifest", ["hljs"])
    +var manifest = angular.module("manifest", [])
    .config([
    '$compileProvider',
    function($compileProvider) {
    @@ -165,7 +165,15 @@
    $scope.copy_tag = function(tag) {
    $scope.ga_tracker.sendEvent("copy", "clicked");
    - $scope.clipboard = $scope.registry + "/" + $scope.repo.name + ":" + tag;
    + var host = $scope.registry;
    +
    + if(host.indexOf("http://") != 0) {
    + host = host.substring(6);
    + } else if(host.indexOf("https://") != 0) {
    + host = host.substring(7);
    + }
    +
    + $scope.clipboard = host + "/" + $scope.repo.name + ":" + tag;
    };
    $scope.clear_error = function() {