add account create

This commit is contained in:
Ashley 2023-12-22 17:17:20 +00:00
parent f288b85919
commit 25b2781cf0

View file

@ -1408,7 +1408,7 @@ if (userID) {
anchor.href = `/api/set-channel-subs?ID=${userID}&channelName=<%=j.Channel?.Metadata.Name%>&avatar=https://p.poketube.fun/<%- j.Channel?.Metadata.Avatars.Thumbnail?.$t %>&channelID=<%= ID %>`; anchor.href = `/api/set-channel-subs?ID=${userID}&channelName=<%=j.Channel?.Metadata.Name%>&avatar=https://p.poketube.fun/<%- j.Channel?.Metadata.Avatars.Thumbnail?.$t %>&channelID=<%= ID %>`;
} else { } else {
// If user ID doesn't exist in localStorage, you can handle it as needed // If user ID doesn't exist in localStorage, you can handle it as needed
console.log("User ID not found in localStorage"); anchor.href = "/account-create"
// Optionally, you can set a default href or display an error message. // Optionally, you can set a default href or display an error message.
} }