Skip to content
Snippets Groups Projects
Commit 39269d46 authored by michael.kainz's avatar michael.kainz Committed by julian.baeume
Browse files

Custom Icons are possible

parent 0c283ea5
No related branches found
No related tags found
No related merge requests found
......@@ -31,7 +31,7 @@ describe('Service delivers a generated web-manifest', function () {
enabled: true,
name: 'Valid App Suite',
shortName: 'Valid App Suite',
icon: '/themes/default/logo_512.png',
icon: '/mycustomlogo.png',
iconWidthHeight: 512,
backgroundColor: 'white'
}
......@@ -46,7 +46,7 @@ describe('Service delivers a generated web-manifest', function () {
short_name: 'Valid App Suite',
icons: [
{
src: '/themes/default/logo_512.png',
src: '/mycustomlogo.png',
type: 'image/png',
sizes: '512x512',
purpose: 'any'
......
......@@ -69,7 +69,7 @@ async function fetchWebManifest (url) {
function buildManifestFromData (userData) {
const manifestData = {}
if (userData.icons) {
if (userData.icon) {
manifestData.icons = [{
src: userData.icon,
type: getTypeFromPath(userData.icon),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment