mirror of https://github.com/embarklabs/embark.git
Make __embarkIPFS global
This commit is contained in:
parent
4c4501a069
commit
2f8ca177e9
|
@ -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) {
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue