mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-06-29 23:45:58 -04:00
cross-fetch -> unfetch (browser only)
This commit is contained in:
@@ -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,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,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";
|
||||
|
||||
Reference in New Issue
Block a user