PageSourceSearch

https://modrinth.com/_nuxt/CukP9oaK.js

js modrinth.com collected 2026-10-01 10:42:04 UTC 1,045 bytes, 1 lines download raw bytes

1import{d as u,bR as _,e as h,aU as k,c as p,a_ as f,aM as y,a as n,b as m,j as v,k as s,Q as b,b6 as w,o,V as g}from"./DUququmF.js";const C={class:"discord-link-container universal-card"},D={key:0},M={key:1},x={key:2},A=u({__name:"link",async setup(B){let e,r;const l=_(),c=([e,r]=h(()=>w()),e=await e,r(),e),d=k(),i=b(null),a=p(()=>l.query.callback==="linked");return f(async()=>{if(!a.value)try{if(!c.value.user?.auth_providers?.includes("discord")){window.location.href=`${y("discord","/discord/link")}&token=${c.value.token}`;return}const t=await d.labrinth.auth_internal.createDiscordCommunityLink();window.location.href=t.url}catch(t){i.value=t}}),(t,L)=>(o(),n("section",C,[m("h1",null,v(s(a)?"Modrinth account linked":"Linking Discord"),1),s(a)?(o(),n("p",D,"Your Modrinth account has been linked to the Discord server.")):s(i)?(o(),n("p",x,"Discord linking failed. Please try again later.")):(o(),n("p",M,"Connecting your Modrinth account to the Discord server..."))]))}}),R=g(A,[["__scopeId","data-v-649a70c0"]]);export{R as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.