diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index bb559e12f0873680cf5a7a5725f9411b9178d658..18767018b525e77187cb5dedd8ebf4189ce768d6 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -45,7 +45,7 @@ class ApplicationController < BaseActionController before_action :set_usage_stats_consent_flag before_action :check_impersonation_availability before_action :increment_http_router_metrics - before_action only: :show do + before_action if: :html_request? do push_frontend_feature_flag(:duo_side_rail, current_user) end diff --git a/ee/app/assets/javascripts/ai/tanuki_bot/components/app.vue b/ee/app/assets/javascripts/ai/tanuki_bot/components/app.vue index 9b099fc412e2c158981c042f58d703818ccbdc5b..0f09dbc43d1dc98fe86db0de4f7eb9949c2007ef 100644 --- a/ee/app/assets/javascripts/ai/tanuki_bot/components/app.vue +++ b/ee/app/assets/javascripts/ai/tanuki_bot/components/app.vue @@ -97,7 +97,6 @@ export default { beforeDestroy() { // Remove the event listener when the component is destroyed window.removeEventListener('resize', this.onWindowResize); - this.cleanupSocket(); }, methods: { setDimensions() {