Make JSON styling available on mobile
authorEd Sanders <esanders@wikimedia.org>
Fri, 12 Apr 2019 14:23:59 +0000 (15:23 +0100)
committerEd Sanders <esanders@wikimedia.org>
Fri, 3 May 2019 15:26:32 +0000 (16:26 +0100)
Styling works fine on mobile and is only loaded
on JSON pages. Without the styling the page is
much harder to read.

Change-Id: I68a7a02f42ec4352969d6e24ba7b0b1f85374523

resources/Resources.php

index 87488eb..a77c2b5 100644 (file)
@@ -866,6 +866,7 @@ return [
        ],
        'mediawiki.content.json' => [
                'styles' => 'resources/src/mediawiki.content.json.less',
+               'targets' => [ 'desktop', 'mobile' ],
        ],
        'mediawiki.confirmCloseWindow' => [
                'scripts' => [