@paypal/checkout-components 5.0.396 → 5.0.397
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/button.js +1 -1
- package/dist/test/button.js +1 -1
- package/package.json +1 -1
- package/src/zoid/buttons/component.jsx +1 -6
package/package.json
CHANGED
|
@@ -43,7 +43,6 @@ import {
|
|
|
43
43
|
getSDKAttribute,
|
|
44
44
|
getJsSdkLibrary,
|
|
45
45
|
wasShopperInsightsUsed,
|
|
46
|
-
isPayPalTrustedUrl,
|
|
47
46
|
getSDKInitTime,
|
|
48
47
|
getSDKToken,
|
|
49
48
|
getShopperSessionId,
|
|
@@ -371,11 +370,7 @@ export const getButtonsComponent: () => ButtonsComponent = memoize(() => {
|
|
|
371
370
|
type: "function",
|
|
372
371
|
sendToChild: true,
|
|
373
372
|
value: () => (url) => {
|
|
374
|
-
|
|
375
|
-
location.href = url;
|
|
376
|
-
} else {
|
|
377
|
-
throw new Error(`Unable to redirect to provided url ${url}`);
|
|
378
|
-
}
|
|
373
|
+
location.href = url;
|
|
379
374
|
},
|
|
380
375
|
},
|
|
381
376
|
|