From 227868b1f61f0e1dd5bf3df3637f5c3461f7ce65 Mon Sep 17 00:00:00 2001 From: Alex Legler Date: Sun, 28 Dec 2014 13:13:34 +0100 Subject: Add viewport --- Tyrian.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Tyrian.php b/Tyrian.php index a168dd5..b8285c7 100644 --- a/Tyrian.php +++ b/Tyrian.php @@ -50,3 +50,10 @@ $wgResourceModules['skins.tyrian.styles'] = array( 'remoteSkinPath' => 'Tyrian', 'localBasePath' => __DIR__, ); + +$wgHooks['OutputPageBeforeHTML'][] = 'injectMetaTags'; + +function injectMetaTags( $out ) { + $out->addMeta( 'viewport', 'width=device-width, initial-scale=1.0' ); + return true; +} -- cgit v1.2.3-18-g5258