feat: complete hosted mod sync and launcher interface updates
Some checks failed
Axolotl desktop CI / guardrails (push) Has been cancelled
Axolotl desktop CI / desktop (macos-latest) (push) Has been cancelled
Axolotl desktop CI / desktop (ubuntu-latest) (push) Has been cancelled
Axolotl desktop CI / desktop (windows-latest) (push) Has been cancelled
Axolotl desktop CI / website (push) Has been cancelled
Repository checks / typos (push) Has been cancelled
Repository checks / tombi (push) Has been cancelled
Rust checks / shear (push) Has been cancelled
Sync source to CNB / Sync Git ref (push) Has been cancelled
Some checks failed
Axolotl desktop CI / guardrails (push) Has been cancelled
Axolotl desktop CI / desktop (macos-latest) (push) Has been cancelled
Axolotl desktop CI / desktop (ubuntu-latest) (push) Has been cancelled
Axolotl desktop CI / desktop (windows-latest) (push) Has been cancelled
Axolotl desktop CI / website (push) Has been cancelled
Repository checks / typos (push) Has been cancelled
Repository checks / tombi (push) Has been cancelled
Rust checks / shear (push) Has been cancelled
Sync source to CNB / Sync Git ref (push) Has been cancelled
Add pack sync markers, tagged mod updates, parallel progress, JWT downloads and retry recovery. Include pending onboarding, about scene, compatibility data pack and download fixes.
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
// Runs inside the embedded skin site only. The JWT never leaves that origin.
|
||||
// Only the allowlisted launcher parent may request a JWT for native pack downloads.
|
||||
;(() => {
|
||||
if (location.origin !== 'https://skin.starlight.cool' || window.parent === window) return
|
||||
|
||||
@ -202,11 +202,7 @@
|
||||
},
|
||||
)
|
||||
const skinBody = await skinResponse.json().catch(() => null)
|
||||
if (
|
||||
!skinResponse.ok ||
|
||||
!skinBody?.payload ||
|
||||
typeof skinBody.payload !== 'object'
|
||||
)
|
||||
if (!skinResponse.ok || !skinBody?.payload || typeof skinBody.payload !== 'object')
|
||||
return { player, skinData: null }
|
||||
return { player, skinData: skinBody.payload }
|
||||
} catch {
|
||||
@ -437,6 +433,23 @@
|
||||
void checkSession(true)
|
||||
return
|
||||
}
|
||||
if (
|
||||
event.data?.type === 'starlight-pack-token-request' &&
|
||||
parentOrigin === event.origin &&
|
||||
typeof event.data.requestId === 'string' &&
|
||||
/^pack-token-\d+-\d+$/.test(event.data.requestId)
|
||||
) {
|
||||
let token = null
|
||||
try {
|
||||
token = localStorage.getItem('loginToken') || null
|
||||
} catch {}
|
||||
if (snapshot.status !== 'signed-in' || token !== lastToken) token = null
|
||||
window.parent.postMessage(
|
||||
{ type: 'starlight-pack-token-result', requestId: event.data.requestId, token },
|
||||
parentOrigin,
|
||||
)
|
||||
return
|
||||
}
|
||||
if (
|
||||
event.data?.type === 'starlight-skin-luck-request' &&
|
||||
parentOrigin === event.origin &&
|
||||
|
||||
Reference in New Issue
Block a user