diff --git a/src/content/docs/docs/guides/set-up-probabilistic-revenue-sharing.mdx b/src/content/docs/docs/guides/set-up-probabilistic-revenue-sharing.mdx index cb6ddd10..3765131c 100644 --- a/src/content/docs/docs/guides/set-up-probabilistic-revenue-sharing.mdx +++ b/src/content/docs/docs/guides/set-up-probabilistic-revenue-sharing.mdx @@ -18,7 +18,7 @@ This example shows how to use probabilistic revenue sharing by including a scrip If you don't want to include a script on your page, you can use our [Probabilistic Revshare Generator](/prob-revshare). After entering your payment pointers and/or other Open Payments-enabled wallet addresses, along with weights, the generator will provide you with a monetization `` element that contains a unique `href` URL hosted on `https://webmonetization.org/prob-revshare/`. ::: -The example below shows a list of weighted payment pointers. The easiest way to establish weight is to assign values that add up to 100. +The example below shows a list of weighted [payment pointers](/docs/resources/glossary#payment-pointer). The easiest way to establish weight is to assign values that add up to 100. ```html
@@ -62,7 +62,7 @@ The example below shows a list of weighted payment pointers. The easiest way to First, we list the payment pointers and assign each one a weight. -If the combined weights equal 100, then each weight represents the percentage at which each payment pointer will be chosen. For example, `$wallet.example/connie` has a 9.5% chance of being chosen, resulting in Connie's share approaching 9.5% of the page's total revenue as more web monetized visitors access the site. +If the combined weights equal 100, then each weight represents the percentage at which each payment pointer will be chosen. For example, `$wallet.example.com/connie` has a 9.5% chance of being chosen, resulting in Connie's share approaching 9.5% of the page's total revenue as more web monetized visitors access the site. ```js const pointers = { @@ -74,7 +74,7 @@ const pointers = { ``` :::info -Since this method bypasses the need to include a monetization `` element, you can choose to use a payment pointer's shorthand form (e.g., `$wallet.example/alice`) rather than the endpoint URL that the payment pointer resolves to (e.g. `https://wallet.example/alice`). +Since this method bypasses the need to include a monetization `` element, you can choose to use a payment pointer's shorthand form (e.g., `$wallet.example.com/alice`) rather than the endpoint URL that the payment pointer resolves to (e.g. `https://wallet.example.com/alice`). ::: Next, we define the function to cause payment pointers to be chosen based on weight. diff --git a/tsconfig.json b/tsconfig.json index 53017376..b7243b92 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,6 +2,6 @@ "extends": "astro/tsconfigs/strict", "compilerOptions": { "jsx": "react-jsx", - "jsxImportSource": "react", - }, + "jsxImportSource": "react" + } } diff --git a/workers/probabilistic-revshare/tsconfig.json b/workers/probabilistic-revshare/tsconfig.json index 20eec5ab..c858391a 100644 --- a/workers/probabilistic-revshare/tsconfig.json +++ b/workers/probabilistic-revshare/tsconfig.json @@ -8,7 +8,7 @@ "module": "system", "lib": [ "es2020", - "WebWorker", + "WebWorker" ] /* Specify library files to be included in the compilation. */, // "allowJs": true, /* Allow javascript files to be compiled. */ // "checkJs": true, /* Report errors in .js files. */ @@ -67,6 +67,6 @@ /* Advanced Options */ "skipLibCheck": true /* Skip type checking of declaration files. */, - "forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */, - }, + "forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */ + } }