diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 0d0f97cc9..3f14fdc7f 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -93,7 +93,7 @@ class ApplicationController < ActionController::Base # If we are rendering HTML, preload the session data def preload_json - if request.format.html? + if request.format && request.format.html? if guardian.current_user guardian.current_user.sync_notification_channel_position end