forked from x/icebergs
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 {
|
func (m *Message) resource(file string) string {
|
||||||
p := kit.FileLines(3)
|
p := kit.FileLines(3)
|
||||||
kit.If(file == "", func() { p = kit.ExtChange(p, JS) }, func() {
|
kit.If(file == "", func() { p = kit.ExtChange(p, JS) }, func() {
|
||||||
if strings.HasPrefix(file, PS) {
|
if kit.HasPrefix(file, PS, HTTP) {
|
||||||
p = file
|
p = file
|
||||||
} else {
|
} else {
|
||||||
p = path.Join(path.Dir(p), file)
|
p = path.Join(path.Dir(p), file)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user