Merge pull request #1987 from qeeqez/fix-prettier

Fix prettier (#1964)
This commit is contained in:
Dimitri Witkowski 2022-02-17 22:23:00 +01:00 committed by GitHub
commit 61cccc4b08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 19 deletions

View File

@ -15,15 +15,13 @@ function getManifestDirs(browser) {
`${home}/Library/Application Support/Google/Chrome/NativeMessagingHosts/`,
`${home}/Library/Application Support/Google/Chrome Beta/NativeMessagingHosts/`,
`${home}/Library/Application Support/Google/Chrome Canary/NativeMessagingHosts/`,
`${home}/Library/Application Support/Chromium/NativeMessagingHosts/`,
`${home}/Library/Application Support/Chromium/NativeMessagingHosts/`
];
case 'Firefox':
return [
`${home}/Library/Application Support/Mozilla/NativeMessagingHosts/`,
];
return [`${home}/Library/Application Support/Mozilla/NativeMessagingHosts/`];
case 'Edge':
return [
`${home}/Library/Application Support/Microsoft Edge/NativeMessagingHosts/`,
`${home}/Library/Application Support/Microsoft Edge/NativeMessagingHosts/`
];
default:
return undefined;
@ -35,16 +33,12 @@ function getManifestDirs(browser) {
`${home}/.config/google-chrome/NativeMessagingHosts/`,
`${home}/.config/google-chrome-dev/NativeMessagingHosts/`,
`${home}/.config/google-chrome-unstable/NativeMessagingHosts/`,
`${home}/.config/chromium/NativeMessagingHosts/`,
`${home}/.config/chromium/NativeMessagingHosts/`
];
case 'Firefox':
return [
`${home}/.mozilla/native-messaging-hosts/`,
];
return [`${home}/.mozilla/native-messaging-hosts/`];
case 'Edge':
return [
`${home}/.config/microsoft-edge/NativeMessagingHosts/`,
];
return [`${home}/.config/microsoft-edge/NativeMessagingHosts/`];
default:
return undefined;
}
@ -56,16 +50,12 @@ function getWindowsRegistryPaths(browser) {
case 'Chrome':
return [
'HKCU\\Software\\Google\\Chrome\\NativeMessagingHosts\\',
'HKCU\\Software\\Chromium\\NativeMessagingHosts\\',
'HKCU\\Software\\Chromium\\NativeMessagingHosts\\'
];
case 'Firefox':
return [
'HKCU\\Software\\Mozilla\\NativeMessagingHosts\\',
];
return ['HKCU\\Software\\Mozilla\\NativeMessagingHosts\\'];
case 'Edge':
return [
'HKCU\\Software\\Microsoft\\Edge\\NativeMessagingHosts\\',
];
return ['HKCU\\Software\\Microsoft\\Edge\\NativeMessagingHosts\\'];
default:
return undefined;
}