Add missing dependencies on modules

* Module 'ext.CookieWarning' depends on module 'mediawiki.user' because
  ext.CookieWarning.js uses mw.user.isAnon.
* Module 'ext.CookieWarning.geolocation' depends on module
  'jquery.cookie' because cookiePolicy.js uses $.cookie.

Change-Id: Idd5cba6c997a8ad835f7244cf971a7839102b995
This commit is contained in:
Fomafix 2018-03-22 20:17:13 +01:00
parent e57c24ed6d
commit 5af96e1d18

View file

@ -81,7 +81,8 @@
"ext.CookieWarning": {
"dependencies": [
"mediawiki.api",
"mediawiki.cookie"
"mediawiki.cookie",
"mediawiki.user"
],
"scripts": "resources/ext.CookieWarning/ext.CookieWarning.js",
"targets": [
@ -100,7 +101,10 @@
},
"ext.CookieWarning.geolocation": {
"scripts": "resources/ext.CookieWarning.geolocation/cookiePolicy.js",
"dependencies": "ext.CookieWarning",
"dependencies": [
"ext.CookieWarning",
"jquery.cookie"
],
"targets": [
"mobile",
"desktop"