Ver código fonte

expose moment.js for web extensions

tags/6.3-RC1
Stas Vilchik 7 anos atrás
pai
commit
cc65eb6953

+ 2
- 0
server/sonar-web/src/main/js/app/utils/exposeLibraries.js Ver arquivo

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

Carregando…
Cancelar
Salvar