1
mirror of https://github.com/jakejarvis/get-canonical-url.git synced 2025-09-16 18:45:32 -04:00

fix edge case for no passed-in options

This commit is contained in:
2021-10-08 19:41:34 -04:00
parent 7dd1a1a68c
commit 9bae8d053a
5 changed files with 230 additions and 214 deletions

View File

@@ -1,6 +1,6 @@
import normalizeUrl from "normalize-url";
export default function canonicalUrl(options) {
export default function canonicalUrl(options = {}) {
options = {
normalize: false,
normalizeOptions: {