1
0
mirror of https://git.sr.ht/~cadence/bibliogram synced 2024-11-22 16:17:29 +00:00

Remove console logs

This commit is contained in:
Cadence Ember 2020-06-19 20:01:43 +12:00
parent 719399f54b
commit e4e190f97e
No known key found for this signature in database
GPG Key ID: 128B99B1B74A6412

View File

@ -48,12 +48,10 @@ class GMResponse {
} }
function gmFetch(url, options = {}) { function gmFetch(url, options = {}) {
console.log("Making request")
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
options.url = url options.url = url
if (!options.method) options.method = "GET" if (!options.method) options.method = "GET"
options.onload = response => { options.onload = response => {
console.log("Got response", response)
resolve(new GMResponse(response)) resolve(new GMResponse(response))
} }
options.onerror = response => { options.onerror = response => {