Skip to content

Commit

Permalink
remove console.logs
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidWells committed May 23, 2017
1 parent 17cb16a commit 0814d9f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion scripts/phenomic.browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ if (module.hot) {
// hot load md
module.hot.accept(mdContext.id, () => {
mdContext = require.context("../content", true, /\.(md|markdown)$/)
const mdHotUpdater = require('phenomic/lib/client/hot-md').default
const mdHotUpdater = require('phenomic-serverless/lib/client/hot-md').default
const requireUpdate = mdHotUpdater(mdContext, window.__COLLECTION__, store)
mdContext.keys().forEach(requireUpdate)
})
Expand Down
6 changes: 3 additions & 3 deletions src/utils/analytics/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export function gaPageView(pageData) {
return setTimeout(removeUTM, 0)
}
if (typeof ga !== 'undefined') {
console.info(`GA Pageview > ${window.location.href}`)
// console.info(`GA Pageview > ${window.location.href}`)
ga('set', 'page', data.path) // eslint-disable-line
ga('send', 'pageview', { hitCallback: removeUTM }) // eslint-disable-line
}
Expand All @@ -48,7 +48,7 @@ export function customerIOPageView(pageData) {
return console.info(`DEV: Customer.io Pageview > ${window.location.href}`)
}
if (typeof _cio !== 'undefined') {
console.info(`Customer.io Pageview > ${window.location.href}`)
// console.info(`Customer.io Pageview > ${window.location.href}`)
_cio.page(document.location.href, data) // eslint-disable-line
}
}
Expand All @@ -58,7 +58,7 @@ export function hubspotPageView(pageData) {
return console.info(`DEV: Hubspot Pageview > ${window.location.href}`)
}
if (typeof _hsq !== 'undefined') {
console.info(`Hubspot Pageview > ${window.location.href}`)
// console.info(`Hubspot Pageview > ${window.location.href}`)
_hsq.push(['trackPageView']) // eslint-disable-line
}
}
Expand Down
5 changes: 0 additions & 5 deletions src/utils/routerUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,8 @@ export function handleRouteChange(e) {
return false
}
if (newURL === loading || previousURL === loading) {
console.log('exit early')
return false
}
if (process.env.NODE_ENV === 'development') {
console.log('previousURL', previousURL)
console.log('newURL', newURL)
}
// Set last page viewed for 404 tracker
setItem(LAST_PAGE_SEEN, previousURL, function(){
if (process.env.NODE_ENV === 'development') {
Expand Down

0 comments on commit 0814d9f

Please sign in to comment.