From 591ce1cd4847601f144360280fcbfb6bd5be2fc8 Mon Sep 17 00:00:00 2001 From: Hollokin Date: Wed, 1 Feb 2023 14:36:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9LoadSystemModuleByEngine?= =?UTF-8?q?=E4=B8=AD=E7=9A=84=E6=A8=A1=E5=9D=97=E5=90=8D=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Hollokin --- frameworks/kits/extension/src/js_inputmethod_extension.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frameworks/kits/extension/src/js_inputmethod_extension.cpp b/frameworks/kits/extension/src/js_inputmethod_extension.cpp index 63279814..bd08bc0e 100644 --- a/frameworks/kits/extension/src/js_inputmethod_extension.cpp +++ b/frameworks/kits/extension/src/js_inputmethod_extension.cpp @@ -51,7 +51,7 @@ NativeValue *AttachInputMethodExtensionContext(NativeEngine *engine, void *value return nullptr; } NativeValue *object = CreateJsInputMethodExtensionContext(*engine, ptr); - auto contextObj = JsRuntime::LoadSystemModuleByEngine(engine, "inputmethodextensioncontext", &object, 1)->Get(); + auto contextObj = JsRuntime::LoadSystemModuleByEngine(engine, "InputMethodExtensionContext", &object, 1)->Get(); NativeObject *nObject = ConvertNativeValueTo(contextObj); nObject->ConvertToNativeBindingObject( engine, DetachCallbackFunc, AttachInputMethodExtensionContext, value, nullptr); @@ -125,7 +125,7 @@ void JsInputMethodExtension::BindContext(NativeEngine &engine, NativeObject *obj } IMSA_HILOGI("JsInputMethodExtension::Init CreateJsInputMethodExtensionContext."); NativeValue *contextObj = CreateJsInputMethodExtensionContext(engine, context); - auto shellContextRef = jsRuntime_.LoadSystemModule("inputmethodextensioncontext", &contextObj, ARGC_ONE); + auto shellContextRef = jsRuntime_.LoadSystemModule("InputMethodExtensionContext", &contextObj, ARGC_ONE); contextObj = shellContextRef->Get(); auto nativeObj = ConvertNativeValueTo(contextObj); if (nativeObj == nullptr) {