Move Hyperagent require to HALAPIResource factory

Signed-off-by: Alex Coles <alex@alexbcoles.com>
pull/2192/head
Alex Coles 10 years ago
parent 19d6a4da8c
commit 7996f81e76
  1. 2
      app/assets/javascripts/angular/api/hal-api-resource.js
  2. 2
      app/assets/javascripts/angular/openproject-app.js

@ -26,6 +26,8 @@
// See doc/COPYRIGHT.rdoc for more details.
//++
require('hyperagent/dist/hyperagent');
module.exports = function HALAPIResource($q, PathHelper) {
'use strict';

@ -26,8 +26,6 @@
// See doc/COPYRIGHT.rdoc for more details.
//++
require('hyperagent/dist/hyperagent');
var I18n = require('./vendor/i18n');
window.I18n = I18n;
I18n.translations.de = require("json!yaml!./../../../../config/locales/js-de.yml").de;

Loading…
Cancel
Save