This commit is contained in:
Daniel 2023-06-01 22:14:51 +08:00
parent f4078be23b
commit 338851fcab
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -209,6 +209,7 @@ func serveAppearance(ginServer *gin.Engine) {
ua := useragent.New(userAgentHeader)
if ua.Mobile() {
if strings.Contains(strings.ToLower(ua.Platform()), "pad") {
// Improve detecting Pad device, treat it as desktop device https://github.com/siyuan-note/siyuan/issues/8435
location.Path = "/stage/build/desktop/"
} else {
location.Path = "/stage/build/mobile/"