Permalink
Browse files

- Disabled analytics in debug mode

- Added about page to offline cache manifest
  • Loading branch information...
1 parent dedd0f8 commit e113e6f8bc14fcd5d1c2026e49e5f1e1704e1f26 @JasonHanley committed Jun 1, 2011
Showing with 4 additions and 0 deletions.
  1. +2 −0 build.php
  2. +2 −0 web/index-src.php
View
@@ -44,6 +44,8 @@ function addFiles(&$files, $pattern, $autoversion = false) {
addFiles($files, 'css/style.css', true);
addFiles($files, 'js/*.js', true);
addFiles($files, 'images/*');
+addFiles($files, 'about/*.html');
+addFiles($files, 'about/*.png');
//array_push($files, "\nFALLBACK:");
//array_push($files, '/ offline.html');
View
@@ -258,6 +258,7 @@ function autoVer($url) {
});
</script>
+<?php if(!$debug): // don't count debug displays in analytics ?>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-74505-26']);
@@ -269,6 +270,7 @@ function autoVer($url) {
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
+<?php endif ?>
</body>
</html>

0 comments on commit e113e6f

Please sign in to comment.