Use require to clarify ext.uls.preferences

ext.uls.preferences only depended on ext.uls.common because of its
use of the uls global. This is unnecessary, and made clearer by using
require and module.exports to access it.

Change-Id: Ied2a1b560d19a18529fd766ced778c912199fa2f
This commit is contained in:
jdlrobson authored and Jdlrobson committed 2020-10-20 16:08:59 +00:00
1 parent 5cd10ce862
commit f8fde38197
4 files changed
+8 -8

No files matched your search

+1 -1
View File
@@ -40,7 +40,7 @@
// Here it's used as a meaningless word, to test
// the preferences without changing anything useful.
prefName = 'gofanim';
prefs = mw.uls.preferences();
prefs = require( 'ext.uls.preferences' )();
prefsToSave = {};
prefsToSave[ prefName ] = {