Skip to content

Commit

Permalink
Add debug fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
corrideat committed Nov 28, 2024
1 parent 78442ea commit de61672
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions frontend/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@ import './utils/touchInteractions.js'
import { showNavMixin } from './views/utils/misc.js'
import './views/utils/vStyle.js'

const debugFetch = self.fetch
self.fetch = (...args) => {
return debugFetch.apply(self, args).catch(e => {
console.error('@@@FETCH ERROR', e?.message, e?.stack, args)
throw e
})
}

console.info('GI_VERSION:', process.env.GI_VERSION)
console.info('CONTRACTS_VERSION:', process.env.CONTRACTS_VERSION)
console.info('LIGHTWEIGHT_CLIENT:', process.env.LIGHTWEIGHT_CLIENT)
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit de61672

Please sign in to comment.