Skip to content

Commit

Permalink
update:修改允许自启动方法的判断逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
fangmingtao@heytea.com committed Jun 26, 2024
1 parent fbd9e31 commit d36c059
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import {
DeviceEventEmitter,
NativeModules,
Platform
} from 'react-native'
Expand All @@ -13,12 +12,12 @@ export default class JCore {
JCoreModule.setAuth(auth)
}
static testCountryCode(params) {
if (Platform.OS == "android") {
if (Platform.OS === "android") {
JCoreModule.testCountryCode(params)
}
}
static enableAutoWakeup(enable) {
if (Platform.OS == "android") {
if (Platform.OS === "android") {
JCoreModule.enableAutoWakeup(enable)
}
}
Expand Down

0 comments on commit d36c059

Please sign in to comment.