Commit 2e02abff by Torkel Ödegaard

fix(render): fixed issue with image renderer caused by disabling angular debug info

parent e47957ce
......@@ -38,10 +38,10 @@
function checkIsReady() {
var canvas = page.evaluate(function() {
if (!window.angular) { return false; }
var body = window.angular.element(document.body); // 1
var body = window.angular.element(document.body);
if (!body.scope) { return false; }
var rootScope = body.scope();
var rootScope = body.injector().get('$rootScope');
if (!rootScope) {return false;}
if (!rootScope.performance) { return false; }
var panelsToLoad = window.angular.element('div.panel').length;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment