This commit is contained in:
parent
75cdd69b9b
commit
a895216bda
@ -2,10 +2,7 @@ class ApplicationController < ActionController::Base
|
|||||||
include SeoConcern
|
include SeoConcern
|
||||||
# Only allow modern browsers supporting webp images, web push, badges, import maps, CSS nesting, and CSS :has.
|
# Only allow modern browsers supporting webp images, web push, badges, import maps, CSS nesting, and CSS :has.
|
||||||
# allow_browser versions: :modern
|
# allow_browser versions: :modern
|
||||||
allow_browser do |config|
|
allow_browser versions: :modern do |config|
|
||||||
# 保留现代浏览器支持
|
|
||||||
config.use :modern
|
|
||||||
|
|
||||||
# 通用移动浏览器
|
# 通用移动浏览器
|
||||||
config.allow(/Mobile Safari/) # iOS Safari
|
config.allow(/Mobile Safari/) # iOS Safari
|
||||||
config.allow(/Chrome\/[\d.]+/) # Chrome 内核浏览器
|
config.allow(/Chrome\/[\d.]+/) # Chrome 内核浏览器
|
||||||
|
Loading…
Reference in New Issue
Block a user