UNPKG

react-on-rails

Version:

react-on-rails JavaScript for react_on_rails Ruby gem

12 lines (11 loc) 305 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = context; /** * Get the context, be it window or global */ function context() { return ((typeof window !== 'undefined') && window) || ((typeof global !== 'undefined') && global) || this; }