go.tools/cmd/present: register SVG mime type
This will fix the images in Brad's GoCon presentation. LGTM=bradfitz R=golang-codereviews, bradfitz CC=golang-codereviews https://golang.org/cl/100950043
This commit is contained in:
parent
96cece04e7
commit
83c1b4e7d4
|
@ -7,6 +7,8 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"mime"
|
||||||
|
|
||||||
"code.google.com/p/go.tools/present"
|
"code.google.com/p/go.tools/present"
|
||||||
|
|
||||||
_ "code.google.com/p/go.tools/playground"
|
_ "code.google.com/p/go.tools/playground"
|
||||||
|
@ -17,6 +19,9 @@ var basePath = "./present/"
|
||||||
func init() {
|
func init() {
|
||||||
playScript(basePath, "HTTPTransport")
|
playScript(basePath, "HTTPTransport")
|
||||||
present.PlayEnabled = true
|
present.PlayEnabled = true
|
||||||
|
|
||||||
|
// App Engine has no /etc/mime.types
|
||||||
|
mime.AddExtensionType(".svg", "image/svg+xml")
|
||||||
}
|
}
|
||||||
|
|
||||||
func playable(c present.Code) bool {
|
func playable(c present.Code) bool {
|
||||||
|
|
Loading…
Reference in New Issue