File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
packages/app/src/app/overmind/effects Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1313 "$PropertyType": true,
1414 "TimeoutID": true,
1515 "object": true,
16- "__DEV__": true
16+ "__DEV__": true,
17+ "Stripe": true
1718 },
1819 "rules": {
1920 "react/jsx-filename-extension": 0,
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { STRIPE_API_KEY } from '@codesandbox/common/lib/utils/config';
33function loadScript ( path : string ) {
44 return new Promise ( resolve => {
55 if ( typeof document !== 'undefined' ) {
6- var script = document . createElement ( 'script' ) ;
6+ const script = document . createElement ( 'script' ) ;
77 script . onload = resolve ;
88 script . async = true ;
99 script . type = 'text/javascript' ;
@@ -20,7 +20,6 @@ const getStripe = async (): Promise<stripe.Stripe> => {
2020 }
2121
2222 if ( ! localStripeVar ) {
23- // @ts -ignore
2423 localStripeVar = Stripe ( STRIPE_API_KEY ) ;
2524 }
2625
You can’t perform that action at this time.
0 commit comments