Skip to content

Commit db386d6

Browse files
committed
To prevent the local copy from crashing, only load reveal-ga if we're *not* running on localhost
1 parent 26c8e85 commit db386d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/_index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
{ src: 'bower_components/reveal.js/plugin/zoom-js/zoom.js', async: true },
8080
{ src: 'bower_components/reveal.js/plugin/notes/notes.js', async: true },
8181
{ src: 'js/loadhtmlslides.js', condition: function() { return !!document.querySelector( '[data-html]' ); } },
82-
{ src: 'js/reveal-ga.min.js' }
82+
{ src: 'js/reveal-ga.min.js', condition: function() { return !window.location.host.match(/^localhost:/i); } }
8383
]
8484
});
8585

0 commit comments

Comments
 (0)