mirror of
https://github.com/nolanlawson/blob-util.git
synced 2025-12-08 19:46:19 +00:00
20 lines
411 B
JavaScript
20 lines
411 B
JavaScript
'use strict';
|
|
|
|
var utils = require('./pouch-utils');
|
|
|
|
exports.sayHello = utils.toPromise(function (callback) {
|
|
//
|
|
// You can use the following code to
|
|
// get the pouch or PouchDB objects
|
|
//
|
|
// var pouch = this;
|
|
// var PouchDB = pouch.constructor;
|
|
|
|
callback(null, 'hello');
|
|
});
|
|
|
|
/* istanbul ignore next */
|
|
if (typeof window !== 'undefined' && window.PouchDB) {
|
|
window.PouchDB.plugin(exports);
|
|
}
|