Skip to content

Commit

Permalink
always attach the window._db global instead of waiting for helpers/db…
Browse files Browse the repository at this point in the history
… to be loaded
  • Loading branch information
hawkrives committed Oct 29, 2018
1 parent 2bdcb59 commit e5a9eb6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 0 additions & 2 deletions modules/gob-web/helpers/db.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,3 @@
import {createDatabase} from '@gob/web-database'

export const db = createDatabase()

global._db = db
4 changes: 4 additions & 0 deletions modules/gob-web/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ startAnalytics()
import loadData from './workers/load-data'
loadData().catch(err => console.error(err))

// ... attach the db for debugging
import {db} from './helpers/db'
global._db = db

// Kick off the GUI
console.log('3. 2.. 1... Blast off! 🚀')

Expand Down

0 comments on commit e5a9eb6

Please sign in to comment.