mirror of
https://github.com/syssecfsu/witty.git
synced 2025-03-10 00:10:44 +01:00
move xterm lib to assets/external
This commit is contained in:
parent
477454e9bf
commit
c3606288c8
@ -1,7 +1,6 @@
|
||||
This directory contains xterm.js 4.16
|
||||
|
||||
To update this to a newer version of xterm.js, run
|
||||
`npm install xterm.js` in a different directory,
|
||||
and copy xterm.js and xterm.js.map and xterm.css here.
|
||||
|
||||
Do the same to three of xterm.js's addons.
|
||||
To update the xterm library to a newer version of xterm.js, run
|
||||
`npm install xterm.js` in a different directory, and then copy
|
||||
xterm.js and xterm.js.map and xterm.css and the files for three
|
||||
of xterm.js's addons to the external directory.
|
6
main.go
6
main.go
@ -224,7 +224,11 @@ func fileHandler(c *gin.Context, fname string) {
|
||||
} else {
|
||||
//c.HTML interprets the file as HTML file
|
||||
//we do not need that for regular files
|
||||
c.File(fmt.Sprint("./assets/", fname))
|
||||
if strings.HasPrefix(fname, "xterm") {
|
||||
c.File(fmt.Sprint("./assets/external/", fname))
|
||||
} else {
|
||||
c.File(fmt.Sprint("./assets/", fname))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user