generated from dave/wails-template
Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
3ca12139cd |
@@ -4,7 +4,8 @@ import { type Writable, writable } from "svelte/store";
|
|||||||
async function createStore(): Promise<Writable<ScrollingTimeframe> & { next: Function; prev: Function }> {
|
async function createStore(): Promise<Writable<ScrollingTimeframe> & { next: Function; prev: Function }> {
|
||||||
const thism = new Date();
|
const thism = new Date();
|
||||||
const lastm = new Date();
|
const lastm = new Date();
|
||||||
lastm.setMonth(thism.getMonth() - 1);
|
thism.setMonth(thism.getMonth() - 1);
|
||||||
|
lastm.setMonth(lastm.getMonth() - 2);
|
||||||
|
|
||||||
const { subscribe, update, set } = writable({ from: lastm, to: thism });
|
const { subscribe, update, set } = writable({ from: lastm, to: thism });
|
||||||
return {
|
return {
|
||||||
|
Reference in New Issue
Block a user