diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 3293334..50c01c3 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -2,10 +2,7 @@ class ApplicationController < ActionController::Base include SeoConcern # Only allow modern browsers supporting webp images, web push, badges, import maps, CSS nesting, and CSS :has. # allow_browser versions: :modern - allow_browser do |config| - # 保留现代浏览器支持 - config.use :modern - + allow_browser versions: :modern do |config| # 通用移动浏览器 config.allow(/Mobile Safari/) # iOS Safari config.allow(/Chrome\/[\d.]+/) # Chrome 内核浏览器