mirror of
https://shylinux.com/x/icebergs
synced 2025-04-25 17:18:05 +08:00
add some
This commit is contained in:
parent
30ac9411bf
commit
ae10996a7b
@ -258,7 +258,7 @@ func (m *Message) Resource(file string) string { return m.resource(file) }
|
||||
func (m *Message) resource(file string) string {
|
||||
p := kit.FileLines(3)
|
||||
kit.If(file == "", func() { p = kit.ExtChange(p, JS) }, func() {
|
||||
if strings.HasPrefix(file, PS) {
|
||||
if kit.HasPrefix(file, PS, HTTP) {
|
||||
p = file
|
||||
} else {
|
||||
p = path.Join(path.Dir(p), file)
|
||||
|
Loading…
x
Reference in New Issue
Block a user