Skip to content

Commit

Permalink
check for method before calling it
Browse files Browse the repository at this point in the history
  • Loading branch information
Judahmeek committed Dec 26, 2021
1 parent 32ab3cc commit f577b25
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,9 @@ def create_js_context
end

def execjs_timer_polyfills
if ReactOnRails::Utils.react_on_rails_pro? && ReactOnRailsPro.configuration.include_execjs_polyfills == false
if ReactOnRails::Utils.react_on_rails_pro? &&
ReactOnRailsPro.configuration.respond_to?("include_execjs_polyfills") &&
ReactOnRailsPro.configuration.include_execjs_polyfills == false
return ""
end

Expand Down

0 comments on commit f577b25

Please sign in to comment.