performance.js.flow 493 B

123456789101112131415161718192021
  1. /**
  2. * Copyright (c) 2013-present, Facebook, Inc.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. *
  7. * @providesModule performance
  8. * @typechecks
  9. */
  10. 'use strict';
  11. var ExecutionEnvironment = require('./ExecutionEnvironment');
  12. var performance;
  13. if (ExecutionEnvironment.canUseDOM) {
  14. performance = window.performance || window.msPerformance || window.webkitPerformance;
  15. }
  16. module.exports = performance || {};