Skip to content

Commit e69295a

Browse files
committed
skip url validation for local
1 parent 3fc257a commit e69295a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/zoid/buttons/component.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ export const getButtonsComponent: () => ButtonsComponent = memoize(() => {
303303
type: "function",
304304
sendToChild: true,
305305
value: () => (url) => {
306-
if (isPayPalTrustedUrl(url)) {
306+
if (getEnv() === ENV.LOCAL || isPayPalTrustedUrl(url)) {
307307
location.href = url;
308308
} else {
309309
throw new Error(`Unable to redirect to provided url ${url}`);

0 commit comments

Comments
 (0)