[tool] Fix flutter.js regression with hot-reload on promise-based init. (#110805)
This commit is contained in:
@@ -205,6 +205,8 @@ _flutter.loader = null;
|
||||
this._didCreateEngineInitializerResolve(engineInitializer);
|
||||
// Remove the resolver after the first time, so Flutter Web can hot restart.
|
||||
this._didCreateEngineInitializerResolve = null;
|
||||
// Make the engine revert to "auto" initialization on hot restart.
|
||||
delete _flutter.loader.didCreateEngineInitializer;
|
||||
}
|
||||
if (typeof this._onEntrypointLoaded === "function") {
|
||||
this._onEntrypointLoaded(engineInitializer);
|
||||
|
||||
Reference in New Issue
Block a user