aboutsummaryrefslogtreecommitdiff
path: root/views/script/core_chart.js
diff options
context:
space:
mode:
Diffstat (limited to 'views/script/core_chart.js')
-rw-r--r--views/script/core_chart.js26
1 files changed, 22 insertions, 4 deletions
diff --git a/views/script/core_chart.js b/views/script/core_chart.js
index 179dd82..d34ce21 100644
--- a/views/script/core_chart.js
+++ b/views/script/core_chart.js
@@ -8,33 +8,42 @@ setInterval(() => {
file = webview.getURL().split("/")[webview.getURL().split("/").length - 1];
activity = lang.discord.game[0];
- enableActivity = true;
+ enableActivity = false;
eaid = "";
switch (file) {
case "game.html?online":
+ enableActivity = true;
activity = lang.online.discord;
break;
case "game.html?sp":
+ enableActivity = true;
activity = lang.discord.game[1];
break;
case "game.html":
+ enableActivity = true;
activity = lang.discord.game[2];
break;
case "intro.html":
+ enableActivity = true;
activity = lang.discord.intro[1];
break;
case "settings.html":
+ case "stats.html":
+ enableActivity = true;
activity = lang.discord.settings[1];
break;
case "credits.html":
+ enableActivity = true;
activity = lang.discord.credits[1];
break;
case "online.html":
+ enableActivity = true;
activity = lang.online.discord2;
break;
case "menu.html":
case "win.html":
+ enableActivity = true;
activity = lang.discord.credits[0];
break;
case "loader.html":
@@ -53,11 +62,20 @@ setInterval(() => {
}
if (require('./package.json').channel === "git") {
- document.getElementById('experimental-ramusage').innerText = currentMemoryMib;
- document.title="Kartik Trunk " +require('./package.json').version + eaid;
+ if (currentMemory < 100) {
+ document.getElementById('experimental-ramusage').innerText = "0" + currentMemoryMib;
+ } else {
+ document.getElementById('experimental-ramusage').innerText = currentMemoryMib;
+ }
+ buff = Buffer.from(activity, 'utf-8').toString("hex");
+ document.title="Kartik Trunk " +require('./package.json').version + "-" + require('./package.json').serial.toLowerCase() + "-debugkeys - <Debugging On>";
} else {
if (require('./package.json').channel !== "stable") {
- document.getElementById('experimental-ramusage').innerText = currentMemoryMib;
+ if (currentMemory < 100) {
+ document.getElementById('experimental-ramusage').innerText = "0" + currentMemoryMib;
+ } else {
+ document.getElementById('experimental-ramusage').innerText = currentMemoryMib;
+ }
document.title="Kartik"+require('@electron/remote').getCurrentWindow().channel+require('./package.json').version + eaid;
} else {
document.title="Kartik"+require('@electron/remote').getCurrentWindow().channel+require('./package.json').version + eaid;