From b22e60c8a10f956a932842514e7029e0a501c7f0 Mon Sep 17 00:00:00 2001 From: Anthony Gubler Date: Wed, 12 Apr 2017 15:23:26 +0100 Subject: [PATCH] fix up blob has check --- src/has.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/has.ts b/src/has.ts index e45656fc..50c7fb1e 100644 --- a/src/has.ts +++ b/src/has.ts @@ -16,8 +16,8 @@ add('blob', function () { return false; } - const request = new XMLHttpRequest(); - request.open('GET', '/foo', true); + const request = new global.XMLHttpRequest(); + request.open('GET', 'http://www.google.com', true); request.responseType = 'blob'; request.abort(); return request.responseType === 'blob';