diff options
-rw-r--r-- | FtechWebring.client.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/FtechWebring.client.js b/FtechWebring.client.js index 3e362dd..3209c03 100644 --- a/FtechWebring.client.js +++ b/FtechWebring.client.js @@ -21,10 +21,12 @@ function _ftww_processData(raw) { // We find the index corresponding to this website thisSite = null; - if (typeof location.hostname === "string") { // Checking if the required variable is defined + hparts = location.href.split("/"); + href = a[0] + "/" + a[1] + "/" + a[2]; + if (typeof href === "string") { // Checking if the required variable is defined index = 0; for (site of sites) { - if (site["name"] === location.hostname) { + if (site["name"] === href) { thisSite = index; } |