diff --git a/awx/ui/static/js/ng-console.js b/awx/ui/static/js/ng-console.js index 8fef3afff4..1de0b9d89a 100644 --- a/awx/ui/static/js/ng-console.js +++ b/awx/ui/static/js/ng-console.js @@ -26,7 +26,7 @@ window.getService = function getService(serviceName) { Object.defineProperty(window, '$scope', { get: function () { - var elem = angular.element(__commandLineAPI.$0); + var elem = angular.element(window.__commandLineAPI.$0); return elem.isolateScope() || elem.scope(); }, });