Skip to content

Commit

Permalink
Fix oppia#6738: Change direct usage of window.location (oppia#7879)
Browse files Browse the repository at this point in the history
  • Loading branch information
xlogix authored and seanlip committed Nov 4, 2019
1 parent 351d840 commit f03d34c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ angular.module('oppia').directive('sideNavigationBar', [
'/components/common-layout-directives/navigation-bars/' +
'side-navigation-bar.directive.html'),
controllerAs: '$ctrl',
controller: ['$timeout', function($timeout) {
controller: ['$timeout', '$window', function($timeout, $window) {
var ctrl = this;
ctrl.currentUrl = window.location.pathname;
ctrl.currentUrl = $window.location.pathname;
ctrl.getStaticImageUrl = UrlInterpolationService.getStaticImageUrl;
}]
};
Expand Down

0 comments on commit f03d34c

Please sign in to comment.