We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b229b41 + 0e9ca6f commit 3fdec04Copy full SHA for 3fdec04
1 file changed
packages/fxa-settings/src/models/integrations/utils.ts
@@ -4,12 +4,10 @@
4
5
import { OAuthNativeServices } from '@fxa/accounts/oauth';
6
7
+const oauthNativeServices = new Set<string>(Object.values(OAuthNativeServices));
8
+
9
export function isFirefoxService(service?: string) {
- return (
- service === OAuthNativeServices.Sync ||
10
- service === OAuthNativeServices.Relay ||
11
- service === OAuthNativeServices.SmartWindow
12
- );
+ return !!service && oauthNativeServices.has(service);
13
}
14
15
const NO_LONGER_SUPPORTED_CONTEXTS = new Set([
0 commit comments