From 3f96c8cd9d1ba414e0ebc89aaef45ef20d7b6d24 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Sat, 21 Mar 2020 15:56:12 -0700 Subject: [PATCH] remove fetch polyfill I should have this, but I'll deal with it later --- fedireads/static/js/unfetch.js | 1 - fedireads/templates/layout.html | 1 - 2 files changed, 2 deletions(-) delete mode 100644 fedireads/static/js/unfetch.js diff --git a/fedireads/static/js/unfetch.js b/fedireads/static/js/unfetch.js deleted file mode 100644 index c930d8dcb..000000000 --- a/fedireads/static/js/unfetch.js +++ /dev/null @@ -1 +0,0 @@ -module.exports=function(e,n){return n=n||{},new Promise(function(t,r){var s=new XMLHttpRequest,o=[],u=[],i={},a=function(){return{ok:2==(s.status/100|0),statusText:s.statusText,status:s.status,url:s.responseURL,text:function(){return Promise.resolve(s.responseText)},json:function(){return Promise.resolve(JSON.parse(s.responseText))},blob:function(){return Promise.resolve(new Blob([s.response]))},clone:a,headers:{keys:function(){return o},entries:function(){return u},get:function(e){return i[e.toLowerCase()]},has:function(e){return e.toLowerCase()in i}}}};for(var l in s.open(n.method||"get",e,!0),s.onload=function(){s.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(e,n,t){o.push(n=n.toLowerCase()),u.push([n,t]),i[n]=i[n]?i[n]+","+t:t}),t(a())},s.onerror=r,s.withCredentials="include"==n.credentials,n.headers)s.setRequestHeader(l,n.headers[l]);s.send(n.body||null)})}; diff --git a/fedireads/templates/layout.html b/fedireads/templates/layout.html index 7ce1578d5..e76cc2d46 100644 --- a/fedireads/templates/layout.html +++ b/fedireads/templates/layout.html @@ -72,7 +72,6 @@ -