Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit 37f9cd2

Browse files
christopherthielenwesleycho
authored andcommitted
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
1 parent 169c504 commit 37f9cd2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

misc/demo/assets/app.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/* global FastClick, smoothScroll */
22
angular.module('ui.bootstrap.demo', ['ui.bootstrap', 'plunker', 'ngTouch', 'ngAnimate', 'ngSanitize'], function($httpProvider){
3-
FastClick.attach(document.body);
3+
if (!!FastClick) {
4+
FastClick.attach(document.body);
5+
}
46
delete $httpProvider.defaults.headers.common['X-Requested-With'];
57
}).run(['$location', function($location){
68
//Allows us to navigate to the correct element on initialization

0 commit comments

Comments
 (0)