this post was submitted on 11 Jun 2023
3 points (100.0% liked)
Lemmy.World Announcements
29063 readers
1 users here now
This Community is intended for posts about the Lemmy.world server by the admins.
Follow us for server news ๐
Outages ๐ฅ
https://status.lemmy.world/
For support with issues at Lemmy.world, go to the Lemmy.world Support community.
Support e-mail
Any support requests are best sent to info@lemmy.world e-mail.
Report contact
- DM https://lemmy.world/u/lwreport
- Email report@lemmy.world (PGP Supported)
Donations ๐
If you would like to make a donation to support the cost of running this platform, please do so at the following donation URLs.
If you can, please use / switch to Ko-Fi, it has the lowest fees for us
Join the team
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
also, you should replace
const myInst="lemmy.world";
withconst myInst = window.location.hostname;
, it automatically fetches what instance you're on.that (unless i'm misunderstanding) isn't the point of it. it's made for quickly taking you from e.g.
https://lemmy.ml/c/jerboa
tohttps://lemmy.world/c/jerboa@lemmy.ml
, so it needs a const to know which instance to take you toedit: i guess i could replace
let currInst=currUrl[2];
withlet currInst=window.location.hostname;
but i can't see a practical difference and so i chose the shorter one