Skip to content

Commit

Permalink
fix(SideLoad): Ignore nil response_body
Browse files Browse the repository at this point in the history
  • Loading branch information
joelmoss committed Mar 15, 2024
1 parent df29209 commit dfc2e70
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/proscenium/side_load.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def sideload_assets(value)
end

def capture_and_replace_proscenium_stylesheets # rubocop:disable Metrics/*
return if response_body.nil?
return if response_body.first.blank? || !Proscenium::Importer.css_imported?
return unless response_body.first.include? '<!-- [PROSCENIUM_STYLESHEETS] -->'

Expand Down Expand Up @@ -52,6 +53,7 @@ def capture_and_replace_proscenium_stylesheets # rubocop:disable Metrics/*
end

def capture_and_replace_proscenium_javascripts # rubocop:disable Metrics/*
return if response_body.nil?
return if response_body.first.blank? || !Proscenium::Importer.js_imported?

imports = Proscenium::Importer.imported.dup
Expand Down

0 comments on commit dfc2e70

Please sign in to comment.