Skip to content
Snippets Groups Projects

Bug 561500 - Prevent errors if ga.getAll is not a function

1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -220,7 +220,7 @@
// Infra 2791 - Send events to Google Analytics
$('a[href]').click(function() {
if (typeof ga === "function") {
if (typeof ga === "function" && typeof ga.getAll === "function") {
// Get the file name out of the href attribute
var fileName = $(this).attr('href').split('/').pop();
Loading