Skip to content

Commit

Permalink
feat: add support for Electron.
Browse files Browse the repository at this point in the history
Because of the way Electron is loading modules, we need to manually set `Uno` and `Windows` to `window` to be available globally.
  • Loading branch information
carldebilly committed Apr 6, 2020
1 parent b432f6e commit a56a7d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/SamplesApp/SamplesApp.Wasm/SamplesApp.Wasm.csproj
Expand Up @@ -29,8 +29,8 @@
<Content Update="Fonts\winjs-symbols.woff2" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="WasmCSS\*.css" />
<EmbeddedResource Include="WasmScripts\*.js" />
<EmbeddedResource Include="WasmCSS\**\*.css" />
<EmbeddedResource Include="WasmScripts\**\*.js" />
<UpToDateCheckInput Include="WasmCSS\**\*" />
<UpToDateCheckInput Include="WasmScripts\**\*" />
</ItemGroup>
Expand Down
3 changes: 2 additions & 1 deletion src/Uno.UI.Wasm/ts/z_global.ts
@@ -1,2 +1,3 @@
// Ensure the "Uno" namespace is availablle globally
// Ensure the "Uno" namespace is available globally
(<any>window).Uno = Uno;
(<any>window).Windows = Windows;

0 comments on commit a56a7d9

Please sign in to comment.