mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-21 07:50:37 +01:00
ESlint no-multi-assign
and max-nested-callbacks, no-mixed-requires, max-statements-per-line
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
}
|
||||
|
||||
|
||||
module.exports = utils = {
|
||||
utils = {
|
||||
generateUUID: function () {
|
||||
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
|
||||
var r = Math.random() * 16 | 0;
|
||||
@@ -447,6 +447,7 @@
|
||||
},
|
||||
};
|
||||
|
||||
module.exports = utils;
|
||||
if (typeof window !== 'undefined') {
|
||||
window.utils = module.exports;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user