16 lines
309 B
Go
Raw Normal View History

2017-06-24 21:07:45 +02: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 13:55:49 +09:00
func GetContainerClass(ctx aero.Context) string {
if ctx.Path() == "/extension/embed" {
2017-06-24 21:07:45 +02:00
return "embedded"
}
return ""
}