Skip to content

Commit ca7e04f

Browse files
committed
what happens when we remove an event listener?
1 parent 6fa35cb commit ca7e04f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/setup.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { FPTI } from './constants';
88
import { initLogger, checkForCommonErrors, setLogLevel, stringifyError,
99
stringifyErrorMessage, getResourceLoadTime, isPayPalDomain, isEligible,
1010
getDomainSetting, once, openMetaFrame, precacheRememberedFunding,
11-
getCurrentScript, getRememberedFunding, checkForDeprecatedIntegration } from './lib';
11+
getCurrentScript, getRememberedFunding } from './lib';
1212
import { Button } from './button';
1313
import { Checkout } from './checkout';
1414
import { pptm } from './external';
@@ -162,7 +162,7 @@ export const init = once(({ precacheRemembered }) => {
162162

163163
initLogger();
164164

165-
window.addEventListener('load', checkForDeprecatedIntegration);
165+
// window.addEventListener('load', checkForDeprecatedIntegration);
166166

167167
if (pptm.shouldCreateInitialPptmScript()) {
168168
pptm.createPptmScript();

0 commit comments

Comments
 (0)