otd: remove sync load

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/672/head
Varun Patil 2023-05-29 23:23:25 -07:00
parent 11d76a3f99
commit 8118578b1c
1 changed files with 2 additions and 2 deletions

View File

@ -76,7 +76,7 @@ export default defineComponent({
this.resizeObserver = new ResizeObserver(this.onScroll.bind(this));
this.resizeObserver.observe(inner);
this.refresh();
this.refreshNow();
},
beforeDestroy() {
@ -88,7 +88,7 @@ export default defineComponent({
this.$emit('load');
},
async refresh() {
async refreshNow() {
// Look for cache
const dayIdToday = utils.dateToDayId(new Date());
const cacheUrl = `/onthisday/${dayIdToday}`;