mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
properly install polyfill and remove logging
This commit is contained in:
parent
6d003f9565
commit
9cf24d910a
@ -27,15 +27,11 @@ import "text-encoding";
|
|||||||
import {checkNeedsSyncPromise} from "./matrix/storage/idb/utils.js";
|
import {checkNeedsSyncPromise} from "./matrix/storage/idb/utils.js";
|
||||||
import Promise from "../lib/es6-promise/index.js";
|
import Promise from "../lib/es6-promise/index.js";
|
||||||
|
|
||||||
const flush = Promise._flush;
|
if (typeof window.Promise === "undefined") {
|
||||||
Promise._flush = function() {
|
|
||||||
console.log("manually flushing promise queue");
|
|
||||||
flush();
|
|
||||||
}
|
|
||||||
|
|
||||||
window.Promise = Promise;
|
window.Promise = Promise;
|
||||||
// TODO: should be awaited before opening any session in the picker
|
// TODO: should be awaited before opening any session in the picker
|
||||||
checkNeedsSyncPromise();
|
checkNeedsSyncPromise();
|
||||||
|
}
|
||||||
|
|
||||||
// TODO: contribute this to mdn-polyfills
|
// TODO: contribute this to mdn-polyfills
|
||||||
if (!Element.prototype.remove) {
|
if (!Element.prototype.remove) {
|
||||||
|
Loading…
Reference in New Issue
Block a user