|
|
|
@ -7,6 +7,7 @@ export const createTemplate = (
|
|
|
|
|
openSupportPage: () => void;
|
|
|
|
|
platform: string;
|
|
|
|
|
showAbout: () => void;
|
|
|
|
|
saveDebugLog: (_event: any, additionalInfo?: string) => void;
|
|
|
|
|
showWindow: () => void;
|
|
|
|
|
},
|
|
|
|
|
messages: LocaleMessagesType
|
|
|
|
@ -15,7 +16,8 @@ export const createTemplate = (
|
|
|
|
|
throw new TypeError('`options.platform` must be a string');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const { openReleaseNotes, openSupportPage, platform, showAbout, showWindow } = options;
|
|
|
|
|
const { openReleaseNotes, openSupportPage, platform, showAbout, saveDebugLog, showWindow } =
|
|
|
|
|
options;
|
|
|
|
|
|
|
|
|
|
const template = [
|
|
|
|
|
{
|
|
|
|
@ -92,6 +94,15 @@ export const createTemplate = (
|
|
|
|
|
{
|
|
|
|
|
type: 'separator',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: messages.showDebugLog,
|
|
|
|
|
click: () => {
|
|
|
|
|
saveDebugLog('save-debug-log');
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
type: 'separator',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
role: 'toggledevtools',
|
|
|
|
|
label: messages.viewMenuToggleDevTools,
|
|
|
|
|