diff options
Diffstat (limited to 'wasm/Microsoft.AspNetCore.Blazor.E2EPerformance/wwwroot/blazor-frame.html')
-rw-r--r-- | wasm/Microsoft.AspNetCore.Blazor.E2EPerformance/wwwroot/blazor-frame.html | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/wasm/Microsoft.AspNetCore.Blazor.E2EPerformance/wwwroot/blazor-frame.html b/wasm/Microsoft.AspNetCore.Blazor.E2EPerformance/wwwroot/blazor-frame.html new file mode 100644 index 0000000..e93b5f8 --- /dev/null +++ b/wasm/Microsoft.AspNetCore.Blazor.E2EPerformance/wwwroot/blazor-frame.html @@ -0,0 +1,24 @@ +<!DOCTYPE html> +<html> +<head> + <meta charset="utf-8" /> + <title>E2EPerformance</title> + <base href="/" /> +</head> +<body> + <script> + // Pass through benchmark events to the iframe parent + window.receiveBenchmarkEvent = function () { + if (window !== window.parent) { // Only if we're running in a frame + window.parent.receiveBenchmarkEvent.apply(window.parent, arguments); + } + }; + + // Behave as if we were loaded from / instead of /blazor-frame.html + history.pushState('', null, '/'); + </script> + + <app>Loading...</app> + <script src="_framework/components.webassembly.js"></script> +</body> +</html> |