mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-22 19:18:08 +01:00
add new url :3
This commit is contained in:
parent
290e18e2b3
commit
0a4fdbfa80
1 changed files with 6 additions and 15 deletions
|
@ -1810,23 +1810,14 @@ var userID = localStorage.getItem("UserID");
|
|||
|
||||
if (userID) {
|
||||
// If user ID exists in localStorage, set the href attribute
|
||||
anchor.href = `/api/set-channel-subs?ID=${userID}&channelName=<%=k.Video.Channel.Name%>&avatar=https://p.poketube.fun/<%= k.Video.Channel.Avatar[1].$t %>&channelID=<%=video?.Channel.id || k.Video.Channel.id %>`;
|
||||
anchor.href = `/api/set-channel-subs?ID=${userID}&channelName=<%=k.Video.Channel.Name%>&avatar=<%- media_proxy_url %>/<%= k.Video.Channel.Avatar[1].$t %>&channelID=<%=video?.Channel.id || k.Video.Channel.id %>`;
|
||||
} else {
|
||||
// If user ID doesn't exist in localStorage, you can handle it as needed
|
||||
anchor.href = "/account-create"
|
||||
// Optionally, you can set a default href or display an error message.
|
||||
}
|
||||
|
||||
// Now, all the selected video links should have the parameters added to their href attributes
|
||||
|
||||
// Now, all the selected links should have the parameters appended
|
||||
anchor.href = "/account-create"
|
||||
}
|
||||
</script>
|
||||
<!-- app.js -->
|
||||
<!-- app.js -->
|
||||
<!-- app.js -->
|
||||
<!-- app.js -->
|
||||
<!-- app.js -->
|
||||
<!-- app.js -->
|
||||
|
||||
<!-- comments json - not used rn but will in the future! -->
|
||||
<script id="comments" type="application/json"><%- JSON.stringify(inv.comments) %></script>
|
||||
|
||||
<!-- Ambient Mode, for PokeTube -->
|
||||
<% if(IsOldWindows) { %>
|
||||
|
|
Loading…
Reference in a new issue