Only load Adsense in prod. and reset on each page

This commit is contained in:
Andrew Miner
2015-03-10 21:34:41 -07:00
parent ee75415729
commit 50c3d95440
27 changed files with 214 additions and 117 deletions
+2 -2
View File
@@ -26,8 +26,8 @@ app.get '*/$', (request, response)->
response.sendFile filePath, root:ROOT
console.log ">>> #{filePath} (for #{request.path})"
else
response.sendFile '/index.html', root:ROOT
console.log ">>> index.html (for #{request.path})"
response.sendFile '/app.html', root:ROOT
console.log ">>> app.html (for #{request.path})"
app.get '*', (request, response)->
extension = path.extname(request.path)