diff options
author | Kosta Harlan <kharlan@wikimedia.org> | 2023-02-01 11:59:26 +0100 |
---|---|---|
committer | Bartosz DziewoĆski <matma.rex@gmail.com> | 2023-02-02 16:27:08 +0000 |
commit | 78916de4aafba939017229f3d43277de4428aefc (patch) | |
tree | 19683517bd478b792b26d43aa5f7f84a9857ad9b /includes/ResourceLoader/UserOptionsModule.php | |
parent | 95ee25aefba3807dd781aefa5332188402b3e9d8 (diff) | |
download | mediawikicore-78916de4aafba939017229f3d43277de4428aefc.tar.gz mediawikicore-78916de4aafba939017229f3d43277de4428aefc.zip |
ResourceLoader: Define targets in a single location
All the *Module classes end up inheriting from ResourceLoader/Module, so
we only need to define the targets there.
Bug: T127268
Bug: T328497
Change-Id: I12b126377cea78b88269e6efe68f92f3586c4ecc
Diffstat (limited to 'includes/ResourceLoader/UserOptionsModule.php')
-rw-r--r-- | includes/ResourceLoader/UserOptionsModule.php | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/includes/ResourceLoader/UserOptionsModule.php b/includes/ResourceLoader/UserOptionsModule.php index 8b1e7a6f11ef..4c3aebe968c7 100644 --- a/includes/ResourceLoader/UserOptionsModule.php +++ b/includes/ResourceLoader/UserOptionsModule.php @@ -39,8 +39,6 @@ class UserOptionsModule extends Module { protected $origin = self::ORIGIN_CORE_INDIVIDUAL; - protected $targets = [ 'desktop', 'mobile' ]; - /** * @param Context $context * @return string JavaScript code |