Skip to content

Commit

Permalink
add default icon to externalapp and update libcurl
Browse files Browse the repository at this point in the history
  • Loading branch information
Percslol committed Feb 28, 2024
1 parent 7cc97a0 commit 31d3206
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"dependencies": {
"@mercuryworkshop/bare-client-custom": "^3.1.0",
"@tomphttp/bare-server-node": "^2.0.1",
"libcurl.js": "0.3.6",
"libcurl.js": "0.3.8",
"@typescript-eslint/eslint-plugin": "^5.60.1",
"autoprefixer": "^10.4.14",
"eslint": "=8.13.0",
Expand Down
1 change: 1 addition & 0 deletions src/api/Networking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class Networking {
Object.assign(this, {
WebSocket: this.libcurl.WebSocket,
fetch: this.libcurl.fetch,
Socket: this.libcurl.WispConnection,
});
console.log("libcurl.js ready!");
});
Expand Down
5 changes: 4 additions & 1 deletion src/coreapps/ExternalApp.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
class ExternalApp extends App {
manifest: AppManifest;
source: string;
icon = "/assets/icons/generic.png";

constructor(manifest: AppManifest, source: string) {
super();
this.manifest = manifest;
this.name = manifest.name;
this.icon = source + "/" + manifest.icon;
if (manifest.icon) {
this.icon = source + "/" + manifest.icon;
}
this.source = source;
this.package = manifest.package;
this.hidden = manifest.hidden || false;
Expand Down

0 comments on commit 31d3206

Please sign in to comment.