cleanup: remove controversial naming
Replace "whitelist" and "blacklist" with "allow" and "deny" in variable naming, which better represents the purpose of those variables. There is no functional change. https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1393
This commit is contained in:
@@ -113,10 +113,10 @@ function _loadMode(file, info) {
|
||||
}
|
||||
|
||||
_modes[modeName] = {};
|
||||
let propBlacklist = ['unlockDialog'];
|
||||
const excludedProps = ['unlockDialog'];
|
||||
for (let prop in _modes[DEFAULT_MODE]) {
|
||||
if (newMode[prop] !== undefined &&
|
||||
!propBlacklist.includes(prop))
|
||||
!excludedProps.includes(prop))
|
||||
_modes[modeName][prop] = newMode[prop];
|
||||
}
|
||||
_modes[modeName]['isPrimary'] = true;
|
||||
|
Reference in New Issue
Block a user