diff --git a/renderer/core/loader/preload_helper.cc b/renderer/core/loader/preload_helper.cc index aa62c8c2f6685103e08576e27c64d9fd4f9e07e3..042fac35489bb10e1e7c6c09ad2b9d33306ec440 100644 --- a/renderer/core/loader/preload_helper.cc +++ b/renderer/core/loader/preload_helper.cc @@ -406,7 +406,10 @@ void PreloadHelper::ModulePreloadIfNeeded( DCHECK(modulator); if (!modulator) return; - + #if defined(OS_OHOS) + modulator->SetAcquiringImportMapsState( + Modulator::AcquiringImportMapsState::kAfterModuleScriptLoad); + #endif // Step 2. "Let destination be the current state of the as attribute (a // destination), or "script" if it is in no state." [spec text] // Step 3. "If destination is not script-like, then queue a task on the