react-stripe-script-loader
Advanced tools
Comparing version 1.0.32 to 1.0.33
@@ -14,4 +14,2 @@ "use strict"; | ||
function _readOnlyError(name) { throw new Error("\"" + name + "\" is read-only"); } | ||
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } | ||
@@ -120,3 +118,3 @@ | ||
for (var index = 0; index < iframesList.length; _readOnlyError("index"), index++) { | ||
for (var index = 0; index < iframesList.length; index++) { | ||
if (iframesList[index] && iframesList[index].name && (iframesList[index].name.indexOf('__privateStripeMetricsController') === 0 || iframesList[index].name.indexOf('__privateStripeController') === 0)) { | ||
@@ -123,0 +121,0 @@ iframesList[index].parentNode.removeChild(iframesList[index]); |
{ | ||
"name": "react-stripe-script-loader", | ||
"version": "1.0.32", | ||
"version": "1.0.33", | ||
"description": "React component that lets load Stripe script and shows React Stripe Elements", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -43,3 +43,3 @@ import React, { useState, useEffect } from 'react' | ||
const iframesList = document.getElementsByTagName('iframe') | ||
for (const index = 0; index < iframesList.length; index++) { | ||
for (let index = 0; index < iframesList.length; index++) { | ||
if ( | ||
@@ -46,0 +46,0 @@ iframesList[index] && |
392475
160