From 37f9cd26e5a7226f8d284157ebb70be591bba420 Mon Sep 17 00:00:00 2001 From: Chris Thielen Date: Wed, 6 Apr 2016 10:27:33 -0500 Subject: [PATCH] fix(site): allow FastClick to be blocked Some users' adblock and virus protection is accidentally blocking third party `fastclick.js`. Put a guard around the line that invokes the FastClick api Closes #5756 --- misc/demo/assets/app.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/misc/demo/assets/app.js b/misc/demo/assets/app.js index e531d6b7ab..d406a7ca3c 100644 --- a/misc/demo/assets/app.js +++ b/misc/demo/assets/app.js @@ -1,6 +1,8 @@ /* global FastClick, smoothScroll */ angular.module('ui.bootstrap.demo', ['ui.bootstrap', 'plunker', 'ngTouch', 'ngAnimate', 'ngSanitize'], function($httpProvider){ - FastClick.attach(document.body); + if (!!FastClick) { + FastClick.attach(document.body); + } delete $httpProvider.defaults.headers.common['X-Requested-With']; }).run(['$location', function($location){ //Allows us to navigate to the correct element on initialization