From 976bde701e0ef1f6607e90f50158f6a34e58bbac Mon Sep 17 00:00:00 2001 From: Maddison Hellstrom Date: Sun, 19 Aug 2018 04:22:41 -0700 Subject: [PATCH] Use tabOpenLink instead of window.open --- conf.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/conf.js b/conf.js index b3d3672..22966ac 100644 --- a/conf.js +++ b/conf.js @@ -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],