Skip to content

Commit

Permalink
Quick Hotfix for launching pml app via app store
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsLap committed May 26, 2024
1 parent 46d9a27 commit a6e855d
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions pkgs/apps/AppStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,16 +293,24 @@ export default {
`${asFilePath}/${appNameSafe}${fileExtension}`
)) === "file"
) {
await Root.Core.startPkg(
"data:text/javascript," +
encodeURIComponent(
await vfs.readFile(
`${asFilePath}/${appNameSafe}${fileExtension}`
)
),
false,
true
);
if (fileExtension === ".app") {
await Root.Core.startPkg(
"data:text/javascript," +
encodeURIComponent(
await vfs.readFile(
`${asFilePath}/${appNameSafe}${fileExtension}`
)
),
false,
true
);
} else {
let x = await Root.Core.startPkg("apps:PML", true, true);
x.proc.send({
type: "loadFile",
path: `${asFilePath}/${appNameSafe}${fileExtension}`,
});
}
}
})
.catch((e) => {
Expand Down

0 comments on commit a6e855d

Please sign in to comment.