Make __embarkIPFS global

This commit is contained in:
Anthony Laibe 2018-07-27 12:29:15 +01:00 committed by Iuri Matias
parent 4c4501a069
commit 2f8ca177e9
2 changed files with 4 additions and 0 deletions

View File

@ -1,3 +1,5 @@
/*global __embarkIPFS*/
__embarkIPFS.resolve = function (name, callback) { __embarkIPFS.resolve = function (name, callback) {
callback = callback || function () {}; callback = callback || function () {};
if (!this._ipfsConnection) { if (!this._ipfsConnection) {

View File

@ -1,3 +1,5 @@
/*global __embarkIPFS*/
__embarkIPFS.saveText = function (text) { __embarkIPFS.saveText = function (text) {
const self = this; const self = this;
var promise = new Promise(function (resolve, reject) { var promise = new Promise(function (resolve, reject) {