react-npm-encrypt-decrypt
Advanced tools
Comparing version
{ | ||
"name": "react-npm-encrypt-decrypt", | ||
"version": "1.0.12", | ||
"version": "1.0.13", | ||
"description": "The package used to encrypt and decrypt the data dynamically with keys.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -10,5 +10,5 @@ // Assuming you load CryptoJS library separately in your HTML file | ||
// Function to fetch the content of a file asynchronously | ||
async function fetchFileContent(filePath) { | ||
async function fetchFileContent(GLOBAL_CONFIG_PATH) { | ||
try { | ||
const response = await fetch(filePath); | ||
const response = await fetch(GLOBAL_CONFIG_PATH); | ||
if (response.ok) { | ||
@@ -15,0 +15,0 @@ const content = await response.text(); |
5399
0.37%