Lastest change
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user