Skip to content
This repository has been archived by the owner on Apr 7, 2023. It is now read-only.

Commit

Permalink
Workaround for UI-router bug for build with slash in the name. Fixes
Browse files Browse the repository at this point in the history
…#105
  • Loading branch information
Colin McLeod committed Oct 10, 2015
1 parent e837bb6 commit d476c58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/js/controllers/controller-outfit.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ angular.module('app').controller('OutfitController', ['$window', '$rootScope', '
ship.buildWith(data.defaults); // Populate with default components
}

$scope.buildName = $p.bn;
$scope.buildName = $p.bn ? $window.decodeURIComponent($p.bn) : null;
$scope.ships = Ships;
$rootScope.title = ship.name + ($scope.buildName ? ' - ' + $scope.buildName : '');
$scope.ship = ship;
Expand Down

0 comments on commit d476c58

Please sign in to comment.