mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-24 14:34:09 +00:00
Added support for Preconnect
This commit is contained in:
parent
7ae34cb91c
commit
b5ccf5d8b9
|
@ -27,6 +27,15 @@ class SkinCitizen extends SkinTemplate {
|
||||||
$out->addMeta( 'theme-color',
|
$out->addMeta( 'theme-color',
|
||||||
$this->getConfig()->get( 'CitizenThemeColor' )
|
$this->getConfig()->get( 'CitizenThemeColor' )
|
||||||
);
|
);
|
||||||
|
// Preconnect origin
|
||||||
|
if ( $this->getConfig()->get( 'CitizenEnablePreconnect' ) ) {
|
||||||
|
$out->addLink(
|
||||||
|
[
|
||||||
|
'rel' => 'preconnect',
|
||||||
|
'href' => $this->getConfig()->get( 'CitizenPreconnectOrigin' )
|
||||||
|
]
|
||||||
|
);
|
||||||
|
}
|
||||||
// Generate manifest
|
// Generate manifest
|
||||||
if ( $this->getConfig()->get( 'CitizenEnableManifest' ) ) {
|
if ( $this->getConfig()->get( 'CitizenEnableManifest' ) ) {
|
||||||
$out->addLink(
|
$out->addLink(
|
||||||
|
|
|
@ -13,6 +13,8 @@
|
||||||
},
|
},
|
||||||
"config": {
|
"config": {
|
||||||
"CitizenThemeColor": "#11151d",
|
"CitizenThemeColor": "#11151d",
|
||||||
|
"CitizenEnablePreconnect": true,
|
||||||
|
"CitizenPreconnectOrigin": "https://www.google-analytics.com",
|
||||||
"CitizenEnableManifest": true,
|
"CitizenEnableManifest": true,
|
||||||
"CitizenManifestThemeColor": "#11151d",
|
"CitizenManifestThemeColor": "#11151d",
|
||||||
"CitizenManifestBackgroundColor": "#fff"
|
"CitizenManifestBackgroundColor": "#fff"
|
||||||
|
|
Loading…
Reference in a new issue