react-stripe-script-loader
Advanced tools
Comparing version 1.0.21 to 1.0.22
@@ -116,6 +116,7 @@ "use strict"; | ||
var iframesList = document.getElementsByTagName('iframe'); | ||
iframesList.filter(function (item) { | ||
return item.name && item.name.indexOf('privateStripe') === 0; | ||
}).map(function (filteredItem) { | ||
return filteredItem.remove(); | ||
console.log(iframesList); | ||
iframesList && iframesList.map(function (item, index) { | ||
if (item.name && item.name.indexOf('privateStripe') === 0) { | ||
return document.body.removeChild(frames[index]); | ||
} | ||
}); | ||
@@ -122,0 +123,0 @@ scriptElement.remove(); |
{ | ||
"name": "react-stripe-script-loader", | ||
"version": "1.0.21", | ||
"version": "1.0.22", | ||
"description": "React component that lets load Stripe script and shows React Stripe Elements", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -43,6 +43,10 @@ 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]) | ||
} | ||
}) | ||
iframesList | ||
.filter(item => item.name && item.name.indexOf('privateStripe') === 0) | ||
.map(filteredItem => filteredItem.remove()) | ||
scriptElement.remove() | ||
@@ -49,0 +53,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
392188
157