Skip to content

Commit eb549f2

Browse files
committed
feat: add pdf viewer url to settings (close OpenListTeam#1109)
1 parent 9207eb6 commit eb549f2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

bootstrap/setting.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,13 @@ func InitSettings() {
124124
Access: model.PUBLIC,
125125
Group: model.FRONT,
126126
},
127+
{
128+
Key: "pdf viewer url",
129+
Type: "string",
130+
Value: "https://alist-org.github.io/pdf.js/web/viewer.html?file=$url",
131+
Access: model.PUBLIC,
132+
Group: model.FRONT,
133+
},
127134
{
128135
Key: "autoplay video",
129136
Value: "false",

0 commit comments

Comments
 (0)