remove force_same_domain option from webpack helpers
This commit is contained in:
parent
4bdfcc580d
commit
9328c75e1a
1 changed files with 6 additions and 8 deletions
|
@ -1,8 +1,8 @@
|
|||
require 'gitlab/webpack/manifest'
|
||||
|
||||
module WebpackHelper
|
||||
def webpack_bundle_tag(bundle, force_same_domain: false)
|
||||
javascript_include_tag(*entrypoint_paths(bundle, force_same_domain: force_same_domain))
|
||||
def webpack_bundle_tag(bundle)
|
||||
javascript_include_tag(*entrypoint_paths(bundle))
|
||||
end
|
||||
|
||||
def webpack_controller_bundle_tags
|
||||
|
@ -33,7 +33,7 @@ module WebpackHelper
|
|||
javascript_include_tag(*chunks)
|
||||
end
|
||||
|
||||
def entrypoint_paths(source, extension: nil, force_same_domain: false)
|
||||
def entrypoint_paths(source, extension: nil)
|
||||
return "" unless source.present?
|
||||
|
||||
paths = Gitlab::Webpack::Manifest.entrypoint_paths(source)
|
||||
|
@ -41,12 +41,10 @@ module WebpackHelper
|
|||
paths.select! { |p| p.ends_with? ".#{extension}" }
|
||||
end
|
||||
|
||||
unless force_same_domain
|
||||
force_host = webpack_public_host
|
||||
if force_host
|
||||
paths.map! { |p| "#{force_host}#{p}" }
|
||||
end
|
||||
end
|
||||
|
||||
paths
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue