Skip to content

Commit

Permalink
Small tweaks in webpack sample.
Browse files Browse the repository at this point in the history
  • Loading branch information
maraf committed Jan 21, 2022
1 parent 25ee613 commit fb042f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/mono/sample/wasm/browser-webpack/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import _ from 'underscore'
async function dotnetMeaning() {
try {
const { BINDING } = await createDotnetRuntime({
configSrc: "./mono-config.json",
configSrc: "./mono-config.json"
});
const meaningFunction = BINDING.bind_static_method("[Wasm.Browser.WebPack.Sample] Sample.Test:Main");
return meaningFunction();
Expand All @@ -16,7 +16,8 @@ async function dotnetMeaning() {

export async function main() {

const element = document.getElementById("out")
const element = document.getElementById("out");
element.textContent = "loading dotnet...";

const ret = await dotnetMeaning();
const template = _.template('<%=ret%> as computed on dotnet');
Expand Down
2 changes: 1 addition & 1 deletion src/mono/sample/wasm/browser-webpack/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<body>
<h3 id="header">Wasm Browser Webpack Sample</h3>
Answer to the Ultimate Question of Life, the Universe, and Everything is : <span id="out"></span>
Answer to the Ultimate Question of Life, the Universe, and Everything is: <span id="out"></span>
<script type='module' src="./main.js"></script>
</body>

Expand Down

0 comments on commit fb042f2

Please sign in to comment.