Basic browser extension support
This commit is contained in:
15
utils/container.go
Normal file
15
utils/container.go
Normal file
@ -0,0 +1,15 @@
|
||||
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.
|
||||
func GetContainerClass(ctx *aero.Context) string {
|
||||
if ctx.URI() == "/extension/embed" {
|
||||
return "embedded"
|
||||
}
|
||||
|
||||
return ""
|
||||
}
|
Reference in New Issue
Block a user