Skip to content

Commit e6af6f9

Browse files
authored
[web] Minor simplification in flutter.js loader (flutter#174963)
1 parent fd10d21 commit e6af6f9

File tree

1 file changed

+1
-9
lines changed
  • engine/src/flutter/lib/web_ui/flutter_js/src

1 file changed

+1
-9
lines changed

engine/src/flutter/lib/web_ui/flutter_js/src/loader.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -89,19 +89,11 @@ export class FlutterLoader {
8989
}
9090
}
9191

92-
/**
93-
* @param {import("./types").ApplicationBuild} build
94-
* @param {import("./types").WebRenderer} renderer
95-
**/
96-
const buildContainsRenderer = (build, renderer) => {
97-
return build.renderer == renderer;
98-
}
99-
10092
const buildIsCompatible = (build) => {
10193
if (build.compileTarget === "dart2wasm" && !supportsDart2Wasm) {
10294
return false;
10395
}
104-
if (config.renderer && !buildContainsRenderer(build, config.renderer)) {
96+
if (config.renderer && config.renderer != build.renderer) {
10597
return false;
10698
}
10799
return rendererIsCompatible(build.renderer);

0 commit comments

Comments
 (0)