Skip to content

Commit

Permalink
Remove logs
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriellsh committed Sep 11, 2023
1 parent fce2a9a commit c7f9062
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions apps/meteor/ee/client/ecdh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,18 +76,3 @@ sdk.rest.use(async (request, next) => {
const parsed = JSON.parse(decrypted);
return parsed;
});

window.fetch = new Proxy(window.fetch, {
apply(actualFetch, that, args) {
console.log('fetching', args);
// Forward function call to the original fetch
const result = Reflect.apply(actualFetch, that, args);

// Do whatever you want with the resulting Promise
result.then((response) => {
console.log('fetch completed!', args, response);
});

return result;
},
});

0 comments on commit c7f9062

Please sign in to comment.