Skip to content
This repository was archived by the owner on Jun 4, 2025. It is now read-only.

Commit ff0b414

Browse files
committed
Auto Id
1 parent 4b02946 commit ff0b414

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

examples/full/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default class App extends Component {
2222
</View>
2323
<Weeloop
2424
ref={this.weeloop}
25-
custom={false}
25+
custom={true}
2626
appGuid="67540390-b3c1-11e9-a487-43674d54ecce"
2727
user={{
2828

index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ export default class Weloop extends Component {
8787
};
8888

8989
handleOnMessage(event) {
90-
console.log(JSON.parse(event.nativeEvent.data).data.name);
9190
switch (JSON.parse(event.nativeEvent.data).data.name) {
9291
case "get-screenshot":
9392
if (this.state.isCaptured) return;
@@ -111,8 +110,7 @@ export default class Weloop extends Component {
111110
notifNb: JSON.parse(event.nativeEvent.data).data.value,
112111
});
113112
break;
114-
case "isLoaded":
115-
console.log(this.props.appGuid + " " + this.state.token);
113+
case "weloop-device-getCurrentUser":
116114
if (this.state.token != null) {
117115
this.webView.current.injectJavaScript(
118116
`window.GetCurrentUser({ appGuid: '${this.props.appGuid}', token: '${this.state.token}'});true;`

0 commit comments

Comments
 (0)