This commit is contained in:
Mitra Ardron
2018-04-10 09:56:48 +10:00
parent d9c3a77982
commit eda896fe67
2 changed files with 2 additions and 2 deletions

View File

@ -292,7 +292,7 @@ class TransportYJS extends Transport {
async p_getall(url, {verbose=false}={}) { async p_getall(url, {verbose=false}={}) {
let y = await this.p_connection(url, verbose); let y = await this.p_connection(url, verbose);
let keys = y.share.map.keys(); // Surprisingly this is sync, the p_connection should have synchronised let keys = y.share.map.keys(); // Surprisingly this is sync, the p_connection should have synchronised
return this._p_get(y, keys. {verbose}); return this._p_get(y, keys, {verbose});
} }
async p_rawfetch(url, {verbose=false}={}) { async p_rawfetch(url, {verbose=false}={}) {
return { // See identical structure in TransportHTTP return { // See identical structure in TransportHTTP

View File

@ -500,7 +500,7 @@ class Transports {
tabbrevs = tabbrevs.map(n => n.toUpperCase()); tabbrevs = tabbrevs.map(n => n.toUpperCase());
let transports = this.setup0(tabbrevs, options, verbose); let transports = this.setup0(tabbrevs, options, verbose);
if (!!options.statuselement) { if (!!options.statuselement) {
while (statuselement.lastChild) {el.removeChild(el.lastChild); } // Remove any exist status while (statuselement.lastChild) {statuselement.removeChild(statuselement.lastChild); } // Remove any exist status
statuselement.appendChild( statuselement.appendChild(
utils.createElement("UL", {}, transports.map(t => { utils.createElement("UL", {}, transports.map(t => {
let el = utils.createElement("LI", let el = utils.createElement("LI",