forked from mystiq/hydrogen-web
properly install polyfill and remove logging
This commit is contained in:
parent
6d003f9565
commit
9cf24d910a
1 changed files with 4 additions and 8 deletions
|
@ -27,16 +27,12 @@ import "text-encoding";
|
|||
import {checkNeedsSyncPromise} from "./matrix/storage/idb/utils.js";
|
||||
import Promise from "../lib/es6-promise/index.js";
|
||||
|
||||
const flush = Promise._flush;
|
||||
Promise._flush = function() {
|
||||
console.log("manually flushing promise queue");
|
||||
flush();
|
||||
if (typeof window.Promise === "undefined") {
|
||||
window.Promise = Promise;
|
||||
// TODO: should be awaited before opening any session in the picker
|
||||
checkNeedsSyncPromise();
|
||||
}
|
||||
|
||||
window.Promise = Promise;
|
||||
// TODO: should be awaited before opening any session in the picker
|
||||
checkNeedsSyncPromise();
|
||||
|
||||
// TODO: contribute this to mdn-polyfills
|
||||
if (!Element.prototype.remove) {
|
||||
Element.prototype.remove = function remove() {
|
||||
|
|
Loading…
Reference in a new issue