Add Zotero.Prefs.prefHasUserValue(pref, global)

This commit is contained in:
Dan Stillman 2023-07-20 06:34:42 -04:00
parent 51c70eb925
commit 590460cea4

View file

@ -208,6 +208,12 @@ Zotero.Prefs = new function(){
}
this.prefHasUserValue = function (pref, global) {
pref = global ? pref : ZOTERO_CONFIG.PREF_BRANCH + pref;
this.rootBranch.prefHasUserValue(pref);
};
/**
* @param {String[]} [exclude]
* @param {String} [branch] - Name of pref branch, ending with a period