lib/sewing_kit/webpack/helper.rb in sewing_kit-0.32.0.pre.beta.pre.4 vs lib/sewing_kit/webpack/helper.rb in sewing_kit-0.91.0
- old
+ new
@@ -15,10 +15,10 @@
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
def sewing_kit_assets(entrypoint_name, extension: 'js')
return '' unless entrypoint_name.present?
- assets = SewingKit::Webpack::Manifest.asset_dependencies(entrypoint_name)
+ assets = SewingKit::Webpack::Manifest.asset_dependencies(entrypoint_name, request.user_agent)
raise UnknownAssetError, "#{entrypoint_name} was not found in manifest." if raise_unknown_error? assets
return [] unless assets && assets[extension]
dependencies = assets[extension]