aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/app/utils/exposeLibraries.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/app/utils/exposeLibraries.js')
-rw-r--r--server/sonar-web/src/main/js/app/utils/exposeLibraries.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/app/utils/exposeLibraries.js b/server/sonar-web/src/main/js/app/utils/exposeLibraries.js
index 92580bae1c0..ef004e34f09 100644
--- a/server/sonar-web/src/main/js/app/utils/exposeLibraries.js
+++ b/server/sonar-web/src/main/js/app/utils/exposeLibraries.js
@@ -17,10 +17,12 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+import moment from 'moment';
import * as measures from '../../helpers/measures';
import * as request from '../../helpers/request';
const exposeLibraries = () => {
+ window.moment = moment;
window.SonarMeasures = measures;
window.SonarRequest = request;
};