diff --git a/public/src/utils.js b/public/src/utils.js index 742869583c..f6a6b31897 100644 --- a/public/src/utils.js +++ b/public/src/utils.js @@ -5,7 +5,7 @@ const $ = require('jquery'); const zxcvbn = require('zxcvbn'); -const utils = require('./utils.common'); +const utils = { ...require('./utils.common') }; utils.getLanguage = function () { let lang = 'en-GB'; diff --git a/src/utils.js b/src/utils.js index 3607f9b2d3..719abb50d2 100644 --- a/src/utils.js +++ b/src/utils.js @@ -10,7 +10,7 @@ process.elapsedTimeSince = function (start) { const diff = process.hrtime(start); return (diff[0] * 1e3) + (diff[1] / 1e6); }; -const utils = require('../public/src/utils.common'); +const utils = { ...require('../public/src/utils.common') }; utils.getLanguage = function () { const meta = require('./meta');