Skip to content

Commit

Permalink
oops im bad at js
Browse files Browse the repository at this point in the history
  • Loading branch information
SiriusBYT committed Jan 7, 2025
1 parent 94c6408 commit 8085b3e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
13 changes: 5 additions & 8 deletions CEBN_Plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,22 @@ export async function start(): Promise<void> {
const Trinity = new WebSocket("wss://localhost:6701");
while (true) {
Trinity.onopen = function(e) {
logger.log(`== SN-API == Connection established with Caerbernnog Compiler.`)
};

Trinity.onmessage = function(event) {
replugged.quickCSS.reload();
logger.log(`== SN-API == Connection established with Caerbernnog Compiler.`);
Trinity.onmessage = function(event) {
replugged.quickCSS.reload();
};
};

Trinity.onclose = function(event) {
if (event.wasClean) {
logger.log(`== SN-API == Connection closed. Code=${event.code} Reason=${event.reason}.`);
return "CLOSED";
} else {
logger.log("== SN-API == Connection closed forcefully.");
return "CLOSED_FORCE";
};
};

Trinity.onerror = function(error) {
logger.log("== SN-API == Unknown error")
logger.log("== SN-API == Unknown error");
};
}
}
Expand Down
3 changes: 1 addition & 2 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"id": "com.sirio-networK.caerbannog",
"id": "com.sirio-network.caerbannog",
"name": "Caerbannog Compiler",
"description": "Companion Plugin of the CEBN Compiler. Automatically reloads QuickCSS when CEBN detects a change.",
"author": {
Expand All @@ -16,5 +16,4 @@
"type": "replugged-plugin",
"renderer": "CEBN_Plugin.ts",
"source": "https://github.com/SiriusBYT/Caerbannog",
"image": ["https://i.imgur.com/14CNs3a.png?CHANGE-THIS-URL"]
}

0 comments on commit 8085b3e

Please sign in to comment.