From 1dd3f7cf42b1285b3b0d83d9ab01f6dbce83fc64 Mon Sep 17 00:00:00 2001 From: Atticus White Date: Sat, 18 Mar 2017 09:58:47 -0400 Subject: [PATCH] self undeclared fix --- fetch-polyfill.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/fetch-polyfill.js b/fetch-polyfill.js index 86541a7..e1120ae 100644 --- a/fetch-polyfill.js +++ b/fetch-polyfill.js @@ -2,9 +2,9 @@ // Polyfill from https://github.com/github/fetch/blob/v1.1.1/fetch.js#L8-L21 var support = { - searchParams: 'URLSearchParams' in self, - iterable: 'Symbol' in self && 'iterator' in Symbol, - blob: 'FileReader' in self && 'Blob' in self && (function() { + searchParams: 'URLSearchParams' in this, + iterable: 'Symbol' in this && 'iterator' in Symbol, + blob: 'FileReader' in this && 'Blob' in this && (function() { try { new Blob() return true @@ -12,8 +12,8 @@ var support = { return false } })(), - formData: 'FormData' in self, - arrayBuffer: 'ArrayBuffer' in self + formData: 'FormData' in this, + arrayBuffer: 'ArrayBuffer' in this } // Polyfill from https://github.com/github/fetch/blob/v1.1.1/fetch.js#L364-L375