mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
update share board link
This commit is contained in:
@@ -1,14 +1,19 @@
|
||||
function handleShareClick(selectedAddress, cid) {
|
||||
const plebBzBaseURL = "https://pleb.bz/p/";
|
||||
let shareLink;
|
||||
|
||||
let shareLink = `${plebBzBaseURL}${selectedAddress}/`;
|
||||
if (cid === "rules" || cid === "description") {
|
||||
shareLink = `https://plebchan.eth.limo/#/p/${selectedAddress}`;
|
||||
} else {
|
||||
const plebBzBaseURL = "https://pleb.bz/p/";
|
||||
shareLink = `${plebBzBaseURL}${selectedAddress}/`;
|
||||
|
||||
if (cid !== "rules" && cid !== "description") {
|
||||
shareLink += `c/${cid}`;
|
||||
}
|
||||
|
||||
if (cid !== "rules" && cid !== "description") {
|
||||
shareLink += `c/${cid}`;
|
||||
shareLink += `?redirect=plebchan.eth.limo`;
|
||||
}
|
||||
|
||||
shareLink += `?redirect=plebchan.eth.limo`;
|
||||
|
||||
if (navigator.clipboard) {
|
||||
navigator.clipboard.writeText(shareLink).then(() => {
|
||||
console.log("Link copied to clipboard!");
|
||||
|
||||
Reference in New Issue
Block a user