!216 【元能力】不解压HAP加载应用代码

Merge pull request !216 from dy/master
This commit is contained in:
openharmony_ci 2022-08-27 04:54:59 +00:00 committed by Gitee
commit bd3778fa3e
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -96,7 +96,8 @@ void JsInputMethodExtension::Init(const std::shared_ptr<AbilityLocalRecord> &rec
HandleScope handleScope(jsRuntime_);
auto &engine = jsRuntime_.GetNativeEngine();
jsObj_ = jsRuntime_.LoadModule(moduleName, srcPath, abilityInfo_->compileMode == CompileMode::ES_MODULE);
jsObj_ = jsRuntime_.LoadModule(moduleName, srcPath, abilityInfo_->hapPath,
abilityInfo_->compileMode == CompileMode::ES_MODULE);
if (jsObj_ == nullptr) {
IMSA_HILOGE("Failed to get jsObj_");
return;