Readjustment for linting

This commit is contained in:
2025-03-12 14:22:55 -04:00
parent b1c3d9ef84
commit 9f967bf9d7
2 changed files with 7 additions and 4 deletions

View File

@@ -52,7 +52,7 @@ export function btoa(str: string): string {
}
export function linkvertise(userid: number, link: string): string {
let base_url = `https://link-to.net/${userid}/${Math.floor(Math.random() * 1000)}/dynamic`;
let href = `${base_url}?r=${btoa(encodeURI(link))}`;
const base_url = `https://link-to.net/${userid}/${Math.floor(Math.random() * 1000)}/dynamic`;
const href = `${base_url}?r=${btoa(encodeURI(link))}`;
return href;
}