Export Blazor.platform for back-compat. Covers #1157
This commit is contained in:
parent
0e4a657d2e
commit
17b55b983a
|
|
@ -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));
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Reference in New Issue