Skip to content

Commit

Permalink
Add maskable icons to PWA
Browse files Browse the repository at this point in the history
  • Loading branch information
alistair3149 committed Nov 14, 2024
1 parent 8634bf2 commit e17b998
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion config/LocalSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -1177,7 +1177,25 @@
'description' => 'Unofficial wiki dedicated to Star Citizen and Squadron 42',
'short_name' => 'SC Wiki',
'theme_color' => "#0d1012",
'icons' => [],
'icons' => [
[
'src' => "$wgResourceBasePath/resources/assets/sitelogo.svg",
'sizes' => 'any',
'type' => 'image/svg+xml'
],
[
'src' => "$wgResourceBasePath/resources/assets/maskable_icon_x192.png",
'sizes' => '192x192',
'type' => 'image/png',
'purpose' => 'maskable'
],
[
'src' => "$wgResourceBasePath/resources/assets/maskable_icon_x512.png",
'sizes' => '512x512',
'type' => 'image/png',
'purpose' => 'maskable'
],
],
];

/**
Expand Down
Binary file added resources/assets/maskable_icon_x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/assets/maskable_icon_x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e17b998

Please sign in to comment.