mirror of
https://github.com/gethomepage/homepage.git
synced 2026-04-02 08:12:15 -07:00
Enhancement: Add support for PWA icons and shortcuts (#6235)
Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
ca9506e485
commit
c86a007ed0
@@ -8,10 +8,12 @@ export async function getServerSideProps({ res }) {
|
||||
const color = settings.color || "slate";
|
||||
const theme = settings.theme || "dark";
|
||||
|
||||
const pwa = settings.pwa || {};
|
||||
|
||||
const manifest = {
|
||||
name: settings.title || "Homepage",
|
||||
short_name: settings.title || "Homepage",
|
||||
icons: [
|
||||
icons: pwa.icons || [
|
||||
{
|
||||
src: "/android-chrome-192x192.png?v=2",
|
||||
sizes: "192x192",
|
||||
@@ -23,6 +25,7 @@ export async function getServerSideProps({ res }) {
|
||||
type: "image/png",
|
||||
},
|
||||
],
|
||||
shortcuts: pwa.shortcuts,
|
||||
theme_color: themes[color][theme],
|
||||
background_color: themes[color][theme],
|
||||
display: "standalone",
|
||||
|
||||
Reference in New Issue
Block a user