Refactor show documentation function

This commit is contained in:
2024-04-14 11:43:59 +02:00
parent aa2eb0651d
commit d2dee8f371
3 changed files with 69 additions and 31 deletions

View File

@ -2599,8 +2599,9 @@ export class UserAPI {
*/
if (n === undefined) return this.app.clock.bpm;
if (n < 1 || n > 500) console.log(`Setting bpm to ${n}`);
this.app.clock.bpm = n;
if (n < 1 || n > 500) {
this.app.clock.bpm = n;
}
return n;
};
// tempo = this.bpm;
@ -2648,7 +2649,6 @@ export class UserAPI {
public theme = (color_scheme: string): void => {
this.app.readTheme(color_scheme);
console.log("Changing color scheme for: ", color_scheme)
}
public themeName = (): string => {