mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-28 16:21:11 +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
|
||||
*/
|
||||
public function initPage( OutputPage $out ) {
|
||||
$this->out = $out;
|
||||
parent::initPage( $out );
|
||||
// Responsive layout
|
||||
$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' ) ?? '' );
|
||||
|
||||
// Preconnect origin
|
||||
$this->addPreConnect();
|
||||
$out->addPreConnect();
|
||||
|
||||
// Generate manifest
|
||||
$this->addManifest();
|
||||
$out->addManifest();
|
||||
|
||||
// HTTP headers
|
||||
// CSP
|
||||
$this->addCSP();
|
||||
$out->addCSP();
|
||||
|
||||
// HSTS
|
||||
$this->addHSTS();
|
||||
$out->addHSTS();
|
||||
|
||||
// Deny X-Frame-Options
|
||||
$this->addXFrameOptions();
|
||||
$out->addXFrameOptions();
|
||||
|
||||
// X-XSS-Protection
|
||||
$this->addXXSSProtection();
|
||||
$out->addXXSSProtection();
|
||||
|
||||
// Referrer policy
|
||||
$this->addStrictReferrerPolicy();
|
||||
$out->addStrictReferrerPolicy();
|
||||
|
||||
// Feature policy
|
||||
$this->addFeaturePolicy();
|
||||
$out->addFeaturePolicy();
|
||||
|
||||
$this->addModules();
|
||||
$out->addModules();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue