mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-28 08:10:45 +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',
|
||||
$this->getConfig()->get( 'CitizenThemeColor' )
|
||||
);
|
||||
// Preconnect origin
|
||||
if ( $this->getConfig()->get( 'CitizenEnablePreconnect' ) ) {
|
||||
$out->addLink(
|
||||
[
|
||||
'rel' => 'preconnect',
|
||||
'href' => $this->getConfig()->get( 'CitizenPreconnectOrigin' )
|
||||
]
|
||||
);
|
||||
}
|
||||
// Generate manifest
|
||||
if ( $this->getConfig()->get( 'CitizenEnableManifest' ) ) {
|
||||
$out->addLink(
|
||||
|
|
Loading…
Reference in a new issue