Merge branch 'master' into search
authorErik Haider Forsén <erik@forsen.not>
Sat, 14 Nov 2015 14:30:31 +0000 (15:30 +0100)
committerErik Haider Forsén <erik@forsen.not>
Sat, 14 Nov 2015 14:30:31 +0000 (15:30 +0100)
* master:
  Revert "[apiService] created a service for getting the API URL"

# Conflicts:
# src/components/app.ts
# src/index.html

1  2 
src/components/app.ts
src/index.html

@@@ -20,9 -18,4 +18,4 @@@ class App 
  
  }
  
- bootstrap(App,[HTTP_PROVIDERS, ELEMENT_PROBE_PROVIDERS, DhisapiService]);
 -bootstrap(App,[HTTP_PROVIDERS]);
++bootstrap(App,[HTTP_PROVIDERS, ELEMENT_PROBE_PROVIDERS]);
diff --cc src/index.html
@@@ -3,9 -3,13 +3,16 @@@
  <head>
      <meta charset="UTF-8">
      <title>Sample App</title>
 +
 +    <script src="../node_modules/@reactivex/rxjs/dist/global/Rx.js"></script>
 +
+     <script>
+         var xhReq = new XMLHttpRequest();
+         xhReq.open("GET", "../manifest.webapp", false);
+         xhReq.send(null);
+         var serverResponse = JSON.parse(xhReq.responseText);
+         var dhisAPI = serverResponse.activities.dhis.href;
+     </script>
      <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDlgw6kZAQvD8ex_md-6wb_NcnVlZWkbE4"></script>
      <script src="../node_modules/systemjs/dist/system.src.js"></script>
      <script src="../node_modules/angular2/bundles/angular2.dev.js"></script>