Skip to content

Commit

Permalink
Merge pull request #1705 from storybooks/fix-broken-rn-channel
Browse files Browse the repository at this point in the history
We missed this as part of #1515
  • Loading branch information
shilman committed Aug 22, 2017
2 parents c843886 + fd48cbe commit 92ec2d6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/react-native/src/manager/provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ export default class ReactProvider extends Provider {
super();
this.options = options;
this.selection = null;
this.channel = addons.getChannel();
try {
this.channel = addons.getChannel();
} catch (err) {
this.channel = undefined;
}

const secured = options.secured;
const websocketType = secured ? 'wss' : 'ws';
Expand Down

0 comments on commit 92ec2d6

Please sign in to comment.