Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
totorogendut committed Feb 22, 2023
1 parent 1e380ae commit e68425a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/fund/dynamic-revshare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const IDB_DYNAMIC_REVSHARE_DB_NAME: string = "dynamic-revshare";

interface AffiliateData {
affiliate: string;
affiliateId: string;
// affiliateId: string;
affiliateName: string;
}

Expand Down Expand Up @@ -68,7 +68,7 @@ export function setupDynamicRevshare(key: string): DynamicRevshareFactory {
const searchParams = new URL(page.href).searchParams;
let affiliate = decodeURI(searchParams.get("affiliate") || "") as string;
let affiliateName = decodeURI(searchParams.get("affiliate-name") || "") as string;
let affiliateId = decodeURI(searchParams.get("affiliate-id") || "") as string;
// let affiliateId = decodeURI(searchParams.get("affiliate-id") || "") as string;

const load = await this.load();

Expand All @@ -83,7 +83,7 @@ export function setupDynamicRevshare(key: string): DynamicRevshareFactory {
if (!document.querySelector('meta[name="monetization"]')) fund();
}

return { affiliate, affiliateId, affiliateName };
return { affiliate, affiliateName };
},
clear: async function () {
await idbClear(store);
Expand Down
2 changes: 1 addition & 1 deletion src/fund/web-monetization.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export class WebMonetization implements IWebMonetization {
return this;
}

registerDynamicRevshare(id: string = "affiliate", weight: string | number = "10%"): this {
registerDynamicRevshare(id: string, weight: string | number = "10%"): this {
this.chain(async () => {
const dynamicRevshare = setupDynamicRevshare(id);

Expand Down

0 comments on commit e68425a

Please sign in to comment.