mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-25 06:47:16 +00:00
Attempt to fix resourceloader not loading bug
This commit is contained in:
parent
24724cf9b2
commit
6d29600caf
|
@ -21,7 +21,7 @@ class SkinCitizen extends SkinTemplate {
|
||||||
* @param OutputPage $out
|
* @param OutputPage $out
|
||||||
*/
|
*/
|
||||||
public function initPage( OutputPage $out ) {
|
public function initPage( OutputPage $out ) {
|
||||||
$this->out = $out;
|
parent::initPage( $out );
|
||||||
// Responsive layout
|
// Responsive layout
|
||||||
$out->addMeta( 'viewport', 'width=device-width, initial-scale=1.0' );
|
$out->addMeta( 'viewport', 'width=device-width, initial-scale=1.0' );
|
||||||
|
|
||||||
|
@ -29,31 +29,31 @@ class SkinCitizen extends SkinTemplate {
|
||||||
$out->addMeta( 'theme-color', $this->getConfigValue( 'CitizenThemeColor' ) ?? '' );
|
$out->addMeta( 'theme-color', $this->getConfigValue( 'CitizenThemeColor' ) ?? '' );
|
||||||
|
|
||||||
// Preconnect origin
|
// Preconnect origin
|
||||||
$this->addPreConnect();
|
$out->addPreConnect();
|
||||||
|
|
||||||
// Generate manifest
|
// Generate manifest
|
||||||
$this->addManifest();
|
$out->addManifest();
|
||||||
|
|
||||||
// HTTP headers
|
// HTTP headers
|
||||||
// CSP
|
// CSP
|
||||||
$this->addCSP();
|
$out->addCSP();
|
||||||
|
|
||||||
// HSTS
|
// HSTS
|
||||||
$this->addHSTS();
|
$out->addHSTS();
|
||||||
|
|
||||||
// Deny X-Frame-Options
|
// Deny X-Frame-Options
|
||||||
$this->addXFrameOptions();
|
$out->addXFrameOptions();
|
||||||
|
|
||||||
// X-XSS-Protection
|
// X-XSS-Protection
|
||||||
$this->addXXSSProtection();
|
$out->addXXSSProtection();
|
||||||
|
|
||||||
// Referrer policy
|
// Referrer policy
|
||||||
$this->addStrictReferrerPolicy();
|
$out->addStrictReferrerPolicy();
|
||||||
|
|
||||||
// Feature policy
|
// Feature policy
|
||||||
$this->addFeaturePolicy();
|
$out->addFeaturePolicy();
|
||||||
|
|
||||||
$this->addModules();
|
$out->addModules();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue