Skip to content

Commit

Permalink
test: add debug 'sendMediaRequest' function
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelmaddock committed Jul 1, 2020
1 parent be0a797 commit 8100a91
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/metastream-app/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import { PlatformService } from 'platform'
import { initAnalytics } from './analytics'
import { initLocale } from 'locale'
import { setPendingMedia } from 'lobby/actions/mediaPlayer'
import { sendMediaRequest } from 'lobby/actions/media-request'
import { SEC2MS } from 'utils/math'
import { AccountService } from 'account/account'
import { sleep } from 'utils/async'
Expand Down Expand Up @@ -121,7 +122,10 @@ async function main() {
Object.assign((window as any).app, {
history,
store,
platform: PlatformService.get()
platform: PlatformService.get(),
sendMediaRequest: function(opts: any) {
return store.dispatch(sendMediaRequest(opts) as any)
}
})
}

Expand Down

0 comments on commit 8100a91

Please sign in to comment.