react-stripe-script-loader
Advanced tools
Comparing version 1.0.22 to 1.0.23
{ | ||
"name": "react-stripe-script-loader", | ||
"version": "1.0.22", | ||
"version": "1.0.23", | ||
"description": "React component that lets load Stripe script and shows React Stripe Elements", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -43,11 +43,7 @@ import React, { useState, useEffect } from 'react' | ||
const iframesList = document.getElementsByTagName('iframe') | ||
console.log(iframesList) | ||
iframesList && | ||
iframesList.map((item, index) => { | ||
if (item.name && item.name.indexOf('privateStripe') === 0) { | ||
return document.body.removeChild(frames[index]) | ||
} | ||
}) | ||
scriptElement.remove() | ||
for (const elem in iframesList) { | ||
if (elem.name && elem.name.indexOf('privateStripe') !== -1) { | ||
return document.body.removeChild(frames[index]) | ||
} | ||
} | ||
} | ||
@@ -54,0 +50,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
392089
154