diff --git a/js/build/embark.bundle.js b/js/build/embark.bundle.js index 64f45b8c4..dd3c1830c 100644 --- a/js/build/embark.bundle.js +++ b/js/build/embark.bundle.js @@ -43,6 +43,9 @@ return /******/ (function(modules) { // webpackBootstrap /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ +/******/ // identity function for calling harmony imports with the correct context +/******/ __webpack_require__.i = function(value) { return value; }; +/******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { @@ -306,10 +309,10 @@ EmbarkJS.Storage.setProvider = function(provider, options) { try { if (options === undefined) { self.ipfsConnection = IpfsApi('localhost', '5001'); - self.getUrl = "http://localhost:8080/ipfs/"; + self._getUrl = "http://localhost:8080/ipfs/"; } else { self.ipfsConnection = IpfsApi(options.server, options.port); - self.getUrl = options.getUrl || "http://localhost:8080/ipfs/"; + self._getUrl = options.getUrl || "http://localhost:8080/ipfs/"; } resolve(self); } catch (err) { @@ -399,7 +402,7 @@ EmbarkJS.Storage.IPFS.uploadFile = function(inputSelector) { }; EmbarkJS.Storage.IPFS.getUrl = function(hash) { - return (self.getUrl || "http://localhost:8080/ipfs/") + hash; + return (self._getUrl || "http://localhost:8080/ipfs/") + hash; }; //========================================================= diff --git a/js/embark.js b/js/embark.js index 1387ef59e..e0b53c5c1 100644 --- a/js/embark.js +++ b/js/embark.js @@ -227,10 +227,10 @@ EmbarkJS.Storage.setProvider = function(provider, options) { try { if (options === undefined) { self.ipfsConnection = IpfsApi('localhost', '5001'); - self.getUrl = "http://localhost:8080/ipfs/"; + self._getUrl = "http://localhost:8080/ipfs/"; } else { self.ipfsConnection = IpfsApi(options.server, options.port); - self.getUrl = options.getUrl || "http://localhost:8080/ipfs/"; + self._getUrl = options.getUrl || "http://localhost:8080/ipfs/"; } resolve(self); } catch (err) { @@ -320,7 +320,7 @@ EmbarkJS.Storage.IPFS.uploadFile = function(inputSelector) { }; EmbarkJS.Storage.IPFS.getUrl = function(hash) { - return (self.getUrl || "http://localhost:8080/ipfs/") + hash; + return (self._getUrl || "http://localhost:8080/ipfs/") + hash; }; //=========================================================