Browse Source

expose moment.js for web extensions

tags/6.3-RC1
Stas Vilchik 7 years ago
parent
commit
cc65eb6953
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      server/sonar-web/src/main/js/app/utils/exposeLibraries.js

+ 2
- 0
server/sonar-web/src/main/js/app/utils/exposeLibraries.js View File

@@ -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;
};

Loading…
Cancel
Save