Skip to content

Commit

Permalink
try cloning evt message
Browse files Browse the repository at this point in the history
  • Loading branch information
brianignacio5 committed Nov 17, 2023
1 parent 98282cd commit 1056346
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/system-view/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ app.mount("#app");
const store = useSystemViewStore();

window.addEventListener("message", (evt: MessageEvent) => {
const message: { command: string; value: any } = evt.data;
const message: { command: string; value: any } = { ...evt.data };
switch (message.command) {
case "initialLoad":
store.rawData = message.value;
Expand Down

0 comments on commit 1056346

Please sign in to comment.