mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 03:34:40 +00:00
refactor: remove extra non-essential logging
This commit is contained in:
@@ -6,7 +6,6 @@ import { settingsState } from "../utils/listeners/SettingsState";
|
||||
import { updateAllColors } from "./colors/Manager";
|
||||
|
||||
export async function AddBetterSEQTAElements() {
|
||||
console.log('AddBetterSEQTAElements');
|
||||
if (settingsState.onoff) {
|
||||
initializeSettings();
|
||||
if (settingsState.DarkMode) {
|
||||
|
||||
@@ -18,7 +18,6 @@ export function updateBgDurations() {
|
||||
maxBase = 150,
|
||||
) => {
|
||||
const scaledValue = 2 + ((maxBase - baseValue) / (maxBase - minBase)) ** 4;
|
||||
console.log(scaledValue);
|
||||
return scaledValue + offset;
|
||||
};
|
||||
|
||||
|
||||
@@ -108,10 +108,8 @@ const main = async (): Promise<void> => {
|
||||
}
|
||||
});
|
||||
} catch (error) {
|
||||
console.log('An error occurred:', error);
|
||||
console.error('An error occurred:', error);
|
||||
}
|
||||
};
|
||||
|
||||
main()
|
||||
// Run the main function when the document is ready
|
||||
//document.addEventListener('DOMContentLoaded', main);
|
||||
main()
|
||||
@@ -18,7 +18,6 @@ class StorageManager {
|
||||
if (prop in target) {
|
||||
return (target as any)[prop];
|
||||
}
|
||||
//console.log(this.data[prop], prop, this.data)
|
||||
return Reflect.get(target.data, prop);
|
||||
},
|
||||
set: (target, prop: keyof SettingsState, value) => {
|
||||
|
||||
@@ -67,7 +67,6 @@ export class StorageChangeHandler {
|
||||
}
|
||||
|
||||
private handleShortcutsChange(newValue: { enabled: boolean, name: string }[], oldValue: { enabled: boolean, name: string }[]) {
|
||||
console.log(oldValue, newValue);
|
||||
const addedShortcuts = newValue.filter((newItem: any) => {
|
||||
const isAdded = oldValue.some((oldItem: any) => {
|
||||
const match = oldItem.name === newItem.name;
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
export function onError (error: string) { console.log(`Error: ${error}`) }
|
||||
Reference in New Issue
Block a user