<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>MARCEL v2</title>
    <script src="bower_components/webcomponentsjs/webcomponents-lite.js"></script>
    <link rel="import" href="bower_components/polymer/polymer.html">
  </head>
  <body onload="loadComponents()">
    <section id="components"></section>
    <script src="bower_components/polymer-application-loader/loader.js"></script>
    <script>
      function launchLoad (serverIp,pluginIp) {
        PolymerApplicationLoader.load('components', 'http://' + serverIp + ':8090/api/v1/media/1', 'http://' + pluginIp + '/plugins');
      }

      function loadComponents () {
        fetch('config.json')
          .then(res => res.json())
          .then(res => {
            serverIp = res.serverIp || 'localhost';
            pluginIp = res.pluginIp || 'localhost';
            launchLoad(serverIp,pluginIp);
          })
          .catch(() => {
            launchLoad('localhost','localhost');
          })
      }
    </script>
  </body>
</html>

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>MARCEL v2</title>
    <script src="bower_components/webcomponentsjs/webcomponents-lite.js"></script>
    <link rel="import" href="bower_components/polymer/polymer.html">
  </head>
  <body onload="loadComponents()">
    <section id="components"></section>
    <script src="bower_components/polymer-application-loader/loader.js"></script>
    <script>
      function launchLoad (serverIp,pluginIp) {
        PolymerApplicationLoader.load('components', 'http://' + serverIp + ':8090/api/v1/medias/1', 'http://' + pluginIp + '/plugins');
      }

      function loadComponents () {
        fetch('config.json')
          .then(res => res.json())
          .then(res => {
            serverIp = res.serverIp || 'localhost';
            pluginIp = res.pluginIp || 'localhost';
            launchLoad(serverIp,pluginIp);
          })
          .catch(() => {
            launchLoad('localhost','localhost');
          })
      }
    </script>
  </body>
</html>

Use correct path to medias
[Fix] Use correct path to medias
