mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-12-18 17:59:05 +00:00
13 lines
241 B
JavaScript
13 lines
241 B
JavaScript
|
|
/* global window */
|
||
|
|
import ponyfill from './ponyfill';
|
||
|
|
|
||
|
|
var root = this;
|
||
|
|
if (typeof global !== 'undefined') {
|
||
|
|
root = global;
|
||
|
|
} else if (typeof window !== 'undefined') {
|
||
|
|
root = window;
|
||
|
|
}
|
||
|
|
|
||
|
|
var result = ponyfill(root);
|
||
|
|
export default result;
|