Skip to content

Commit

Permalink
added bebo audio disable
Browse files Browse the repository at this point in the history
  • Loading branch information
jnsdls committed Sep 27, 2016
1 parent 22a6ba2 commit e89bf52
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bebo-react",
"version": "0.1.2",
"version": "0.1.3",
"description": "",
"main": "dist/index.js",
"scripts": {
Expand Down
7 changes: 6 additions & 1 deletion src/bebo-react.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,15 @@ export default new class BeboDOM {

render(component, element, beboOptions) {
this.bebo.onReady(() => {
const { disableKeyboardDoneStrip } = beboOptions;
const { disableKeyboardDoneStrip, disableAudio } = beboOptions;
if(disableKeyboardDoneStrip) {
// eslint-disable-next-line
Bebo.UI.disableKeyboardDoneStrip();
}
// eslint-disable-next-line
if(disableAudio && Bebo.Audio && Bebo.Audio.disable) {
// eslint-disable-next-line
Bebo.Audio.disable();
}
ReactDOM.render(component, element);
})
Expand Down

0 comments on commit e89bf52

Please sign in to comment.