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:
parent
719399f54b
commit
e4e190f97e
@ -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 => {
|
||||||
|
Loading…
Reference in New Issue
Block a user