aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinteck ⭐ <nekostarfan@gmail.com>2021-10-15 18:34:32 +0000
committerMinteck ⭐ <nekostarfan@gmail.com>2021-10-15 18:34:32 +0000
commitb0be7f5ac397722ba0d5a98d6b919acb6d8f1a31 (patch)
treee4a2b1346335a89bc5deedc3b98b23c9ff5bca91
parent4ed0103c20d7f2de3e739caf2f7a7e3be1f7ce72 (diff)
downloadwebring-b0be7f5ac397722ba0d5a98d6b919acb6d8f1a31.tar.gz
webring-b0be7f5ac397722ba0d5a98d6b919acb6d8f1a31.tar.bz2
webring-b0be7f5ac397722ba0d5a98d6b919acb6d8f1a31.zip
Update 'FtechWebring.client.js'
-rw-r--r--FtechWebring.client.js6
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;
}