UNPKG

amazon-cognito-identity-js

Version:

Amazon Cognito Identity Provider JavaScript SDK

15 lines (13 loc) 489 B
"use strict"; exports.__esModule = true; exports.detectFramework = void 0; var _constants = require("./constants"); // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 var detectFramework = function detectFramework() { if (typeof navigator !== 'undefined' && navigator.product === 'ReactNative') { return _constants.FRAMEWORK.ReactNative; } return _constants.FRAMEWORK.None; }; exports.detectFramework = detectFramework;