Skip to content

Commit 36021ee

Browse files
author
James Halliday
committed
use commonjs-style exports where possible
1 parent b4b849d commit 36021ee

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/paypal-button.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
if (typeof PAYPAL === 'undefined' || !PAYPAL) {
22
var PAYPAL = {};
33
}
4+
if (typeof module === 'object' && typeof module.exports === 'object') {
5+
module.exports = PAYPAL;
6+
}
47

58
PAYPAL.apps = PAYPAL.apps || {};
69

@@ -244,4 +247,4 @@ PAYPAL.apps = PAYPAL.apps || {};
244247
}
245248

246249

247-
}());
250+
}());

0 commit comments

Comments
 (0)