Signed-off-by: Florian BOUILLON <f.bouillon@aptatio.com>
This commit is contained in:
parent
cef58aaca6
commit
ae901537e7
@ -1,7 +1,11 @@
|
||||
import { getImage } from 'astro:assets'
|
||||
|
||||
export default class Manifest {
|
||||
static async create(baseImage, options) {
|
||||
static async create(baseImage: ImageMetadata, options: {
|
||||
name: string
|
||||
color?: string
|
||||
images?: Array<number>
|
||||
}) {
|
||||
const [
|
||||
i192,
|
||||
i512
|
||||
@ -27,7 +31,6 @@ export default class Manifest {
|
||||
theme_color: options.color ?? "#fff",
|
||||
background_color: options.color ?? "#fff",
|
||||
display: "standalone"
|
||||
}
|
||||
)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user