From eb549f2631fc03cdc25f483fe533aed6119e4d12 Mon Sep 17 00:00:00 2001 From: Noah Hsu Date: Thu, 19 May 2022 15:31:47 +0800 Subject: [PATCH] feat: add `pdf viewer url` to settings (close #1109) --- bootstrap/setting.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bootstrap/setting.go b/bootstrap/setting.go index 1843325f..0927682f 100644 --- a/bootstrap/setting.go +++ b/bootstrap/setting.go @@ -124,6 +124,13 @@ func InitSettings() { Access: model.PUBLIC, Group: model.FRONT, }, + { + Key: "pdf viewer url", + Type: "string", + Value: "https://alist-org.github.io/pdf.js/web/viewer.html?file=$url", + Access: model.PUBLIC, + Group: model.FRONT, + }, { Key: "autoplay video", Value: "false",