You've already forked get-canonical-url
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:
@@ -1,6 +1,6 @@
|
||||
import normalizeUrl from "normalize-url";
|
||||
|
||||
export default function canonicalUrl(options) {
|
||||
export default function canonicalUrl(options = {}) {
|
||||
options = {
|
||||
normalize: false,
|
||||
normalizeOptions: {
|
||||
|
Reference in New Issue
Block a user