mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
13 lines
406 B
JavaScript
13 lines
406 B
JavaScript
{{flutter_js}}
|
|
{{flutter_build_config}}
|
|
|
|
const searchParams = new URLSearchParams(window.location.search);
|
|
const forceSt = searchParams.get('force_st');
|
|
const extraConfig = forceSt ? {forceSingleThreadedSkwasm: true} : {};
|
|
_flutter.loader.load({
|
|
config: {
|
|
// Use the local CanvasKit bundle instead of the CDN to reduce test flakiness.
|
|
canvasKitBaseUrl: "/canvaskit/",
|
|
...extraConfig,
|
|
},
|
|
}); |