Add files
This commit is contained in:
commit
bb80829159
18195 changed files with 2122994 additions and 0 deletions
48
509bba0_unpacked_with_node_modules/~/exenv/index.js
generated
Executable file
48
509bba0_unpacked_with_node_modules/~/exenv/index.js
generated
Executable file
|
@ -0,0 +1,48 @@
|
|||
/*!
|
||||
Copyright (c) 2015 Jed Watson.
|
||||
Based on code that is Copyright 2013-2015, Facebook, Inc.
|
||||
All rights reserved.
|
||||
*/
|
||||
/* global define */
|
||||
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
var canUseDOM = !!(
|
||||
typeof window !== 'undefined' &&
|
||||
window.document &&
|
||||
window.document.createElement
|
||||
);
|
||||
|
||||
var ExecutionEnvironment = {
|
||||
|
||||
canUseDOM: canUseDOM,
|
||||
|
||||
canUseWorkers: typeof Worker !== 'undefined',
|
||||
|
||||
canUseEventListeners:
|
||||
canUseDOM && !!(window.addEventListener || window.attachEvent),
|
||||
|
||||
canUseViewport: canUseDOM && !!window.screen
|
||||
|
||||
};
|
||||
|
||||
if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {
|
||||
define(function () {
|
||||
return ExecutionEnvironment;
|
||||
});
|
||||
} else if (typeof module !== 'undefined' && module.exports) {
|
||||
module.exports = ExecutionEnvironment;
|
||||
} else {
|
||||
window.ExecutionEnvironment = ExecutionEnvironment;
|
||||
}
|
||||
|
||||
}());
|
||||
|
||||
|
||||
|
||||
//////////////////
|
||||
// WEBPACK FOOTER
|
||||
// ./~/exenv/index.js
|
||||
// module id = 2072
|
||||
// module chunks = 4
|
Loading…
Add table
Add a link
Reference in a new issue