lib/isomorfeus-react.rb in isomorfeus-react-16.13.7 vs lib/isomorfeus-react.rb in isomorfeus-react-16.13.8
- old
+ new
@@ -1,21 +1,21 @@
if RUBY_ENGINE == 'opal'
require 'isomorfeus-redux'
require 'active_support/core_ext/string'
require 'zeitwerk'
- if Isomorfeus.on_browser?
+ if on_browser?
require 'browser/event'
require 'browser/event_target'
require 'browser/delegate_native'
require 'browser/element'
end
require 'isomorfeus/react_config'
# allow mounting of components
- if Isomorfeus.on_browser?
+ if on_browser?
require 'isomorfeus/top_level'
else
require 'isomorfeus/top_level_ssr'
end
@@ -23,10 +23,10 @@
require 'react/version'
require 'react'
require 'react/synthetic_event'
require 'react/ref'
require 'react/children'
- if Isomorfeus.on_browser?
+ if on_browser?
require 'react_dom'
else
require 'react_dom_server'
end