mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 06:49:14 +08:00
DEV: Don't force Ember CLI for proxied requests made by Ember CLI (#12909)
This commit is contained in:
parent
19ee38b78a
commit
6f8413fd85
|
@ -95,7 +95,7 @@ class ApplicationController < ActionController::Base
|
|||
end
|
||||
|
||||
def ember_cli_required?
|
||||
ENV['NO_EMBER_CLI'] != '1' && Rails.env.development?
|
||||
Rails.env.development? && ENV['NO_EMBER_CLI'] != '1' && request.headers['X-Discourse-Ember-CLI'] != 'true'
|
||||
end
|
||||
|
||||
def application_layout
|
||||
|
|
Loading…
Reference in New Issue
Block a user