Skip to content

Commit aab109d

Browse files
committed
clarify CDN initialization for Inline JS v2
1 parent e3c5370 commit aab109d

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

dist/doc/developer-tools/inlinejs/initialize.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
const js = `// Add for NPM, Yarn
1+
const js = `// Add for CDN
2+
const Paystack= new PaystackPop();
3+
4+
// Add for NPM, Yarn
25
import Paystack from '@paystack/inline-js';
36
47
const popup = new Paystack()`
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1+
// Add for CDN
2+
const popup= new PaystackPop();
3+
14
// Add for NPM, Yarn
25
import Paystack from '@paystack/inline-js';
36

4-
const popup = new Paystack()
7+
const popup = new Paystack()
8+
9+
// Note: The CDN build exposes `PaystackPop` globally,
10+
// whereas the npm package exports `Paystack`.

0 commit comments

Comments
 (0)