Update application_controller.rb
Some checks are pending
Docker / docker (push) Waiting to run

This commit is contained in:
TianLun Song 2025-01-27 07:49:08 +08:00 committed by GitHub
parent 75cdd69b9b
commit a895216bda
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 内核浏览器