Skip to content

Commit

Permalink
deploy: e9bf91b
Browse files Browse the repository at this point in the history
  • Loading branch information
SpikeHD committed Oct 28, 2024
1 parent 13d81b6 commit a29f6a0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions dorion-settings/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -4268,6 +4268,7 @@ ${content}</tr>
var appendAppVersion = () => __async(void 0, null, function* () {
let tries = 0;
const infoBoxSelector = 'div[class*="side_"] div[class*="info_"]';
const hash = (yield invoke("git_hash").catch((e) => console.error(e))) || "";
while (!document.querySelector(infoBoxSelector)) {
yield sleep(500);
tries++;
Expand All @@ -4282,6 +4283,9 @@ ${content}</tr>
if (!firstChild)
return;
newVersionThing.innerHTML = `${appName} v${yield app.getVersion()}`;
if (hash) {
newVersionThing.innerHTML += " - " + hash.slice(0, 7);
}
newVersionThing.classList.add(...firstChild.classList);
newVersionThing.style.color = firstChild.style.color;
versionThings.appendChild(newVersionThing);
Expand Down
2 changes: 1 addition & 1 deletion dorion-settings/plugin.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"name":"Dorion Settings","author":"SpikeHD","description":"Settings page for the Dorion client.","hash":"7c4cbf8b3ba9baea179678b2eb330def"}
{"name":"Dorion Settings","author":"SpikeHD","description":"Settings page for the Dorion client.","hash":"fd8069707949197522c9d7773895832e"}

0 comments on commit a29f6a0

Please sign in to comment.