Lastest change

This commit is contained in:
Kunthawat Greethong
2025-12-19 16:13:39 +07:00
parent 24c79defff
commit 6bb756fdd7
91 changed files with 4341 additions and 422 deletions

View File

@@ -66,12 +66,12 @@ if (fs.existsSync(gitDir)) {
// https://www.electronjs.org/docs/latest/tutorial/launch-app-from-url-in-another-app#main-process-mainjs
if (process.defaultApp) {
if (process.argv.length >= 2) {
app.setAsDefaultProtocolClient("dyad", process.execPath, [
app.setAsDefaultProtocolClient("moreminimore", process.execPath, [
path.resolve(process.argv[1]),
]);
}
} else {
app.setAsDefaultProtocolClient("dyad");
app.setAsDefaultProtocolClient("moreminimore");
}
export async function onReady() {
@@ -306,10 +306,10 @@ function handleDeepLinkReturn(url: string) {
"hostname",
parsed.hostname,
);
if (parsed.protocol !== "dyad:") {
if (parsed.protocol !== "moreminimore:") {
dialog.showErrorBox(
"Invalid Protocol",
`Expected dyad://, got ${parsed.protocol}. Full URL: ${url}`,
`Expected moreminimore://, got ${parsed.protocol}. Full URL: ${url}`,
);
return;
}