mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-17 03:01:08 +01:00
chore: eslint prefer-template
This commit is contained in:
committed by
Julian Lam
parent
4ee0f1459d
commit
707b55b6a5
@@ -78,7 +78,7 @@ function Settings(hash, version, defCfg, callback, forceUpdate, reset) {
|
||||
this.checkStructure(callback, forceUpdate);
|
||||
});
|
||||
}
|
||||
pubsub.on('action:settings.set.' + hash, function (data) {
|
||||
pubsub.on(`action:settings.set.${hash}`, function (data) {
|
||||
try {
|
||||
self.cfg._ = JSON.parse(data._);
|
||||
} catch (err) {}
|
||||
|
||||
Reference in New Issue
Block a user