mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
feat(mode): add demo mode (#1121)
* feat(mode): add demo mode * chroe: Update store/db/db.go Co-authored-by: boojack <stevenlgtm@gmail.com> * chroe: Update store/db/db.go Co-authored-by: boojack <stevenlgtm@gmail.com> --------- Co-authored-by: boojack <stevenlgtm@gmail.com>
This commit is contained in:
@ -15,7 +15,7 @@ var Version = "0.10.3"
|
||||
var DevVersion = "0.10.3"
|
||||
|
||||
func GetCurrentVersion(mode string) string {
|
||||
if mode == "dev" {
|
||||
if mode == "dev" || mode == "demo" {
|
||||
return DevVersion
|
||||
}
|
||||
return Version
|
||||
|
Reference in New Issue
Block a user