Export Blazor.platform for back-compat. Covers #1157

This commit is contained in:
Steve Sanderson 2018-07-23 10:15:58 -07:00
parent 0e4a657d2e
commit 17b55b983a
2 changed files with 1 additions and 1 deletions

View File

@ -12,6 +12,7 @@ import { fetchBootConfigAsync, loadEmbeddedResourcesAsync } from './BootCommon';
async function boot() {
// Configure environment for execution under Mono WebAssembly with shared-memory rendering
const platform = Environment.setPlatform(monoPlatform);
window['Blazor'].platform = platform;
window['Blazor']._internal.renderBatch = (browserRendererId: number, batchAddress: Pointer) => {
renderBatch(browserRendererId, new SharedMemoryRenderBatch(batchAddress));
};

View File

@ -6,7 +6,6 @@ import { Pointer } from './Platform/Platform';
// Make the following APIs available in global scope for invocation from JS
window['Blazor'] = {
platform,
navigateTo,
_internal: {