Round keyframe ruler labels

Track recurring user stat
This commit is contained in:
JannisX11 2023-08-29 18:38:18 +02:00
parent 941a00efb0
commit 9f62e13b68
2 changed files with 12 additions and 1 deletions

View File

@ -760,7 +760,7 @@ Interface.definePanels(() => {
let height = this.graph_offset - this.graph_size * value;
lines.push({
position: height,
label: value,
label: Math.round(value),
path: `M0 ${height} L10000 ${height}`
});
})

View File

@ -98,6 +98,17 @@ if (Blockbench.startup_count == 1) {
console.error(err);
}
}
if (Blockbench.startup_count == 3) {
try {
jQuery.ajax({
url: 'https://blckbn.ch/api/event/recurring_user',
type: 'POST',
data: {}
})
} catch (err) {
console.error(err);
}
}
Blockbench.on('before_closing', (event) => {
if (!Blockbench.hasFlag('no_localstorage_saving')) {