refactor: cleanup and remove unused stuff

This commit is contained in:
David Ralph
2022-04-16 19:25:42 +01:00
parent 987a7eda6e
commit 4691ccf166
60 changed files with 414 additions and 491 deletions

View File

@@ -1,4 +1,8 @@
// based on https://stackoverflow.com/a/47009962
// it has been brought to my attention (many) times that this is horribly broken if the time
// on the "Change every" setting is longer than 1 minute. I wasn't going to wait days to see
// if the function worked, so i just assumed it did. i apologise. this function will be
// replaced entirely in the future probably
export default function interval(callback, interval, name) {
const key = name + 'interval';
const ms = localStorage.getItem(key);