Content changed warning on deploy page.

This commit is contained in:
muzam1l
2022-07-13 16:17:31 +05:30
parent c7001f6089
commit fc461ddd0d
5 changed files with 28 additions and 4 deletions

View File

@@ -67,8 +67,10 @@ export const compileCode = async (activeId: number) => {
});
// Decode base64 encoded wasm that is coming back from the endpoint
const bufferData = await decodeBinary(json.output);
state.files[state.active].compiledContent = ref(bufferData);
state.files[state.active].lastCompiled = new Date();
const file = state.files[state.active]
file.compiledContent = ref(bufferData);
file.lastCompiled = new Date();
file.compiledValueSnapshot = file.content
// Import wabt from and create human readable version of wasm file and
// put it into state
import("wabt").then((wabt) => {