feat: Add protocol status handling and repair functionality in About component
This commit is contained in:
Vendored
+43
@@ -57,6 +57,49 @@ interface ElectronAPI {
|
||||
writeText: (text: string) => void;
|
||||
};
|
||||
plugins?: PluginAPI;
|
||||
protocol?: {
|
||||
getStatus: () => Promise<{
|
||||
success: boolean;
|
||||
data?: {
|
||||
platform: string;
|
||||
primaryScheme: string;
|
||||
schemes: Record<string, {
|
||||
isDefault: boolean;
|
||||
before: boolean;
|
||||
registerCall: boolean;
|
||||
error: string | null;
|
||||
}>;
|
||||
windows: null | Record<string, {
|
||||
userChoiceProgId: string | null;
|
||||
userChoiceCommand: string | null;
|
||||
hkcuCommand: string | null;
|
||||
hklmCommand: string | null;
|
||||
}>;
|
||||
};
|
||||
error?: string;
|
||||
}>;
|
||||
repair: () => Promise<{
|
||||
success: boolean;
|
||||
data?: {
|
||||
openedSettings: boolean;
|
||||
platform: string;
|
||||
primaryScheme: string;
|
||||
schemes: Record<string, {
|
||||
isDefault: boolean;
|
||||
before: boolean;
|
||||
registerCall: boolean;
|
||||
error: string | null;
|
||||
}>;
|
||||
windows: null | Record<string, {
|
||||
userChoiceProgId: string | null;
|
||||
userChoiceCommand: string | null;
|
||||
hkcuCommand: string | null;
|
||||
hklmCommand: string | null;
|
||||
}>;
|
||||
};
|
||||
error?: string;
|
||||
}>;
|
||||
};
|
||||
}
|
||||
|
||||
declare global {
|
||||
|
||||
Reference in New Issue
Block a user