Skip to content

Commit

Permalink
Configuration parameter added for browser
Browse files Browse the repository at this point in the history
  • Loading branch information
darsan-in committed Nov 26, 2024
1 parent 1271074 commit c354e0d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/browser/core.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import functionMapper from "../function-map";
import { config } from "./config";
import { config as browserDefaultConfig } from "./config";

import branding from "./branding";

Expand Down Expand Up @@ -30,10 +30,14 @@ function createJsonLDElem(

export default async function richieReact({
richieNames,
configuration,
}: richieReactOptions): Promise<void> {
branding();

const functionMap = functionMapper(config);
const functionMap = functionMapper({
...browserDefaultConfig,
...configuration,
});

const source: string = document.documentElement.outerHTML;
const docPath: string = location.pathname;
Expand Down
1 change: 1 addition & 0 deletions lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -857,4 +857,5 @@ export interface richieOptions {

export interface richieReactOptions {
richieNames: richies[];
configuration: configurationOptions;
}

0 comments on commit c354e0d

Please sign in to comment.