Merge branch 'bwindels/ie11' of github.com:vector-im/hydrogen-web into bwindels/ie11

This commit is contained in:
Bruno Windels 2020-08-05 19:02:42 +02:00
commit 3154b047a6

View file

@ -15,6 +15,12 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
import {
AbortError,
ConnectionError
} from "../error.js";
export function abortOnTimeout(createTimeout, timeoutAmount, requestResult, responsePromise) { export function abortOnTimeout(createTimeout, timeoutAmount, requestResult, responsePromise) {
const timeout = createTimeout(timeoutAmount); const timeout = createTimeout(timeoutAmount);
// abort request if timeout finishes first // abort request if timeout finishes first