Use tabOpenLink instead of window.open

This commit is contained in:
Maddison Hellstrom 2018-08-19 04:22:41 -07:00
parent b380d3686c
commit 976bde701e
1 changed files with 1 additions and 3 deletions

View File

@ -165,9 +165,7 @@ function mapsitekeys(d, maps, opts = {}) {
})
}
const fakeSpot = () => window
.open(`http://fakespot.com/analyze?url=${window.location.href}`, "_blank")
.focus()
const fakeSpot = () => tabOpenLink(`http://fakespot.com/analyze?url=${window.location.href}`)
mapsitekeys("amazon.com", [
["fs", "Fakespot", fakeSpot],