Skip to content

Commit

Permalink
fixed buildAmpPath()
Browse files Browse the repository at this point in the history
  • Loading branch information
gall0ws committed Sep 28, 2021
1 parent 69eef18 commit 6479cd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions freeRep.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ const isGazzettaIt = () => location.host.endsWith("gazzetta.it")
const buildAmpPath = () => {
let path = "./amp/"
if (isLaStampa()) {
path = location.pathname + "/amp"
path = location.pathname + "/amp/"
} else if (isGazzettaIt()) {
path = location.pathname.replace(/_preview(.shtml).*/, '$1/amp')
path = location.pathname.replace(/_preview(.shtml).*/, '$1/amp/')
}
return path
}
Expand Down

0 comments on commit 6479cd1

Please sign in to comment.