swap ENVIRONMENT_IS_* functions for Utils named exports
This commit is contained in:
1 parent
c70f14419a
commit
1c24c05647
41 files changed
+117
-141
No files matched your search
@@ -8,16 +8,6 @@
|
||||
* @license Apache-2.0
|
||||
*/
|
||||
|
||||
// Define global environment functions
|
||||
global.ENVIRONMENT_IS_WORKER = function() {
|
||||
return typeof importScripts === "function";
|
||||
};
|
||||
global.ENVIRONMENT_IS_NODE = function() {
|
||||
return typeof process === "object" && typeof require === "function";
|
||||
};
|
||||
global.ENVIRONMENT_IS_WEB = function() {
|
||||
return typeof window === "object";
|
||||
};
|
||||
|
||||
/**
|
||||
* Helper function to convert a status to an icon.
|
||||
|
||||
Reference in new issue
Block a user