react-stripe-script-loader
Advanced tools
Comparing version 1.0.24 to 1.0.25
{ | ||
"name": "react-stripe-script-loader", | ||
"version": "1.0.24", | ||
"version": "1.0.25", | ||
"description": "React component that lets load Stripe script and shows React Stripe Elements", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -43,4 +43,8 @@ import React, { useState, useEffect } from 'react' | ||
const iframesList = document.getElementsByTagName('iframe') | ||
for (const elem in iframesList) { | ||
if (elem.name && elem.name.indexOf('privateStripe') !== -1) { | ||
for (const index in iframesList) { | ||
if ( | ||
iframesList[index] && | ||
iframesList[index].name && | ||
iframesList[index].name.indexOf('privateStripe') !== -1 | ||
) { | ||
return document.body.removeChild(frames[index]) | ||
@@ -47,0 +51,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
392098
156