aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/app
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2016-12-23 10:43:18 +0100
committerStas Vilchik <vilchiks@gmail.com>2016-12-23 10:43:18 +0100
commitcc65eb695394d533c0124c53742a5bb36f948a70 (patch)
treec0e7e95344d4900aca9bb39b41f43f2160cab4fd /server/sonar-web/src/main/js/app
parentbc07b29494abd5dff7875175df91df38d0b908ac (diff)
downloadsonarqube-cc65eb695394d533c0124c53742a5bb36f948a70.tar.gz
sonarqube-cc65eb695394d533c0124c53742a5bb36f948a70.zip
expose moment.js for web extensions
Diffstat (limited to 'server/sonar-web/src/main/js/app')
-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;
};