16 lines
309 B
Go
Raw Normal View History

2017-06-24 19:07:45 +00:00
package utils
import (
"github.com/aerogo/aero"
)
// GetContainerClass returns the class for the "container" element.
// In the browser extension it will get the "embedded" class.
2019-06-01 04:55:49 +00:00
func GetContainerClass(ctx aero.Context) string {
if ctx.Path() == "/extension/embed" {
2017-06-24 19:07:45 +00:00
return "embedded"
}
return ""
}