1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2026-06-29 20:25:58 -04:00

cross-fetch -> unfetch (browser only)

This commit is contained in:
2021-11-24 14:27:00 -05:00
parent b755b66d19
commit 74519b9266
5 changed files with 13 additions and 8 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
import "vanilla-hcaptcha";
import fetch from "cross-fetch";
import fetch from "unfetch";
// don't continue if there isn't a contact form on this page
// TODO: be better and only do any of this on /contact/
+1 -1
View File
@@ -1,6 +1,6 @@
import { h, render } from "preact";
import { useState, useEffect } from "preact/hooks";
import fetch from "cross-fetch";
import fetch from "unfetch";
import canonicalUrl from "get-canonical-url";
// shared react components:
+1 -1
View File
@@ -1,6 +1,6 @@
import { h, render, Fragment } from "preact";
import { useState, useEffect } from "preact/hooks";
import fetch from "cross-fetch";
import fetch from "unfetch";
import dayjs from "dayjs";
import dayjsLocalizedFormat from "dayjs/plugin/localizedFormat.js";
import dayjsRelativeTime from "dayjs/plugin/relativeTime.js";