mirror of
https://github.com/mue/mue.git
synced 2026-07-19 15:04:11 +02:00
style: codacy fixes
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// based on https://stackoverflow.com/a/47009962
|
||||
export default function Interval(callback, interval, name) {
|
||||
export default function interval(callback, interval, name) {
|
||||
const key = name + 'interval';
|
||||
const timeInMs = localStorage.getItem(key);
|
||||
|
||||
@@ -8,7 +8,7 @@ export default function Interval(callback, interval, name) {
|
||||
const executeCallback = () => {
|
||||
localStorage.setItem(key, Date.now());
|
||||
callback();
|
||||
}
|
||||
};
|
||||
|
||||
if (timeInMs) {
|
||||
const delta = now - parseInt(timeInMs);
|
||||
|
||||
Reference in New Issue
Block a user