Transmit current autonym via ResourceLoader instead of config var
This avoids loading of wgULSCurrentAutonym in every HTML page. Change-Id: I8f3a28e3b46f41926bcbe54ace493a33f9ba4566
This commit is contained in:
1 parent
aa5fe16a88
commit
a0df9be678
3 files changed
+34
-7
No files matched your search
@@ -505,7 +505,7 @@
|
||||
previousLanguage = mw.storage.get( 'uls-previous-language-code' );
|
||||
currentLanguage = mw.config.get( 'wgUserLanguage' );
|
||||
previousAutonym = mw.storage.get( 'uls-previous-language-autonym' );
|
||||
currentAutonym = mw.config.get( 'wgULSCurrentAutonym' );
|
||||
currentAutonym = require( '../data.json' ).currentAutonym;
|
||||
|
||||
// If storage is empty, i.e. first visit, then store the current language
|
||||
// immediately so that we know when it changes.
|
||||
|
||||
Reference in new issue
Block a user