mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-24 01:16:15 -04:00
utils/ImportHtml.js: migrate to thenify
This commit is contained in:
parent
c4f1f83747
commit
5d7162ac9a
1 changed files with 2 additions and 1 deletions
|
@ -18,6 +18,7 @@ var log4js = require('log4js');
|
|||
var Changeset = require("ep_etherpad-lite/static/js/Changeset");
|
||||
var contentcollector = require("ep_etherpad-lite/static/js/contentcollector");
|
||||
var cheerio = require("cheerio");
|
||||
const thenify = require("thenify").withCallback;
|
||||
|
||||
function setPadHTML(pad, html, callback)
|
||||
{
|
||||
|
@ -94,4 +95,4 @@ function setPadHTML(pad, html, callback)
|
|||
callback(null);
|
||||
}
|
||||
|
||||
exports.setPadHTML = setPadHTML;
|
||||
exports.setPadHTML = thenify(setPadHTML);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue