We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd10d21 commit e6af6f9Copy full SHA for e6af6f9
engine/src/flutter/lib/web_ui/flutter_js/src/loader.js
@@ -89,19 +89,11 @@ export class FlutterLoader {
89
}
90
91
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
-
100
const buildIsCompatible = (build) => {
101
if (build.compileTarget === "dart2wasm" && !supportsDart2Wasm) {
102
return false;
103
104
- if (config.renderer && !buildContainsRenderer(build, config.renderer)) {
+ if (config.renderer && config.renderer != build.renderer) {
105
106
107
return rendererIsCompatible(build.renderer);
0 commit comments