From b0be7f5ac397722ba0d5a98d6b919acb6d8f1a31 Mon Sep 17 00:00:00 2001 From: Minteck ⭐ Date: Fri, 15 Oct 2021 18:34:32 +0000 Subject: Update 'FtechWebring.client.js' --- FtechWebring.client.js | 6 ++++-- 1 file 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; } -- cgit