From 1671bec66825fe28e131fe5094af035ee6cf8d44 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Fri, 4 Nov 2016 15:28:25 -0400 Subject: Added a check to make sure querySelector is invoked only if getActive body is not null - gets rid of pesky exception --- www/external/ionic.content.banner.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/www/external/ionic.content.banner.js b/www/external/ionic.content.banner.js index 575b0978..900b96a6 100644 --- a/www/external/ionic.content.banner.js +++ b/www/external/ionic.content.banner.js @@ -153,8 +153,9 @@ angular.module('jett.ionic.content.banner', ['ionic']); if (scope.removed) { return; } - - getActiveView(body).querySelector('.scroll-content').appendChild(element[0]); + // PP: get rid of querySelector + if (getActiveView(body) !== undefined) + getActiveView(body).querySelector('.scroll-content').appendChild(element[0]); ionic.requestAnimationFrame(function () { $timeout(function () { -- cgit v1.2.3