mirror of
https://gitee.com/openharmony/inputmethod_imf
synced 2024-11-27 08:51:48 +00:00
Signed-off-by: ma-shaoyin <mashaoyin1@huawei.com>
Changes to be committed:
This commit is contained in:
parent
a1b7a068ab
commit
d515371499
@ -20,7 +20,6 @@ config("ability_config") {
|
||||
visibility = [ ":*" ]
|
||||
include_dirs = [
|
||||
"${inputmethod_path}/frameworks/kits/extension/include",
|
||||
"${inputmethod_path}/interfaces/kits/js/napi/inputmethodclient",
|
||||
"//commonlibrary/c_utils/base/include",
|
||||
"${ability_runtime_path}/interfaces/kits/native/ability/native",
|
||||
"${ability_runtime_path}/interfaces/kits/native/appkit/app",
|
||||
@ -96,7 +95,6 @@ ohos_shared_library("inputmethod_extension") {
|
||||
"${inputmethod_path}/frameworks/kits/extension/src/inputmethod_extension_context.cpp",
|
||||
"${inputmethod_path}/frameworks/kits/extension/src/js_inputmethod_extension.cpp",
|
||||
"${inputmethod_path}/frameworks/kits/extension/src/js_inputmethod_extension_context.cpp",
|
||||
"${inputmethod_path}/interfaces/kits/js/napi/inputmethodclient/js_utils.cpp",
|
||||
]
|
||||
configs = [ ":ability_config" ]
|
||||
public_configs = [
|
||||
|
@ -28,7 +28,6 @@
|
||||
#include "napi_common_want.h"
|
||||
#include "napi_remote_object.h"
|
||||
#include "start_options.h"
|
||||
#include "js_utils.h"
|
||||
|
||||
namespace OHOS {
|
||||
namespace AbilityRuntime {
|
||||
@ -216,9 +215,6 @@ private:
|
||||
// only support one or zero params
|
||||
if (info.argc != ARGC_ZERO && info.argc != ARGC_ONE) {
|
||||
IMSA_HILOGE("Not enough params");
|
||||
MiscServices::JsUtils::ThrowException(reinterpret_cast<napi_env>(&engine),
|
||||
MiscServices::IMFErrorCode::EXCEPTION_PARAMCHECK, " should 0 or 1 parameters!",
|
||||
MiscServices::TypeCode::TYPE_NONE);
|
||||
return engine.CreateUndefined();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user