mirror of
https://gitee.com/openharmony/inputmethod_imf
synced 2024-11-28 09:20:27 +00:00
commit
bb64223604
@ -106,7 +106,7 @@ napi_value JsPanel::SetUiContent(napi_env env, napi_callback_info info)
|
||||
// if type of argv[1] is object, we will get value of 'storage' from it.
|
||||
if (argc >= 2) {
|
||||
napi_valuetype valueType = napi_undefined;
|
||||
napi_status status = napi_typeof(env, argv[1], &valueType);
|
||||
status = napi_typeof(env, argv[1], &valueType);
|
||||
NAPI_ASSERT_BASE(env, status == napi_ok, "get valueType failed!", status);
|
||||
if (valueType == napi_object) {
|
||||
NativeValue *storage = nullptr;
|
||||
|
@ -49,7 +49,7 @@ export default class ServiceExtAbility extends ServiceExtensionAbility {
|
||||
console.log(TAG + 'switchInputMethod failed,' + JSON.stringify(err));
|
||||
prompt.showToast({
|
||||
message: 'switch failed', duration: 200
|
||||
})
|
||||
});
|
||||
} else {
|
||||
console.log(TAG + 'switchInputMethod success');
|
||||
prompt.showToast({
|
||||
|
Loading…
Reference in New Issue
Block a user