FIX: Update application_helper logic now that Ember CLI is default (#15935)

Followup to a01b1dd648
This commit is contained in:
David Taylor
2022-02-14 13:48:18 +00:00
committed by GitHub
parent 7ed899fed9
commit f078d1ab0a

View File

@@ -138,7 +138,7 @@ module ApplicationHelper
def preload_vendor_scripts
scripts = ["vendor"]
if ENV["EMBER_CLI_PROD_ASSETS"] == "1"
if ENV["EMBER_CLI_PROD_ASSETS"] != "0"
@@vendor_chunks ||= begin
all_assets = ActionController::Base.helpers.assets_manifest.assets
all_assets.keys.filter_map { |name| name[/\A(chunk\..*)\.js\z/, 1] }