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

Commit

Permalink
fix(site): allow FastClick to be blocked
Browse files Browse the repository at this point in the history
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
  • Loading branch information
christopherthielen authored and wesleycho committed Apr 6, 2016
1 parent 169c504 commit 37f9cd2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion misc/demo/assets/app.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 37f9cd2

Please sign in to comment.