feat: update theme installation with author details

This commit is contained in:
Hachi-R 2025-02-16 17:40:51 -03:00
parent 4f725d08dc
commit 7064da8b05
5 changed files with 54 additions and 31 deletions

View file

@ -100,11 +100,12 @@ const handleDeepLinkPath = (uri?: string) => {
if (url.host === "install-theme") {
const themeName = url.searchParams.get("theme");
const authorCode = url.searchParams.get("author");
const authorId = url.searchParams.get("authorId");
const authorName = url.searchParams.get("authorName");
if (themeName && authorCode) {
if (themeName && authorId && authorName) {
WindowManager.redirect(
`settings?theme=${themeName}&author=${authorCode}`
`settings?theme=${themeName}&authorId=${authorId}&authorName=${authorName}`
);
}
}