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
2020-10-19 13:09:31 -07:00
committed by Jdlrobson
parent 5cd10ce862
commit f8fde38197
4 changed files with 8 additions and 8 deletions

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 ] = {