Skip to content

Tag: javascript

How do I compute a digest for a given blob in big size, e.g. 5GB?

I know crypto.subtle.digest could be used to generate a digest of a given ArrayBuffer. However, when the file is large, e.g. 5GB, I always get this error Uncaught (in promise) DOMException: The requested file could not be read, typically due to permission problems that have occurred after a reference to a fil…

Firebase Functions and API Keys

Are Firebase functions a safe place to store API keys for a React App? As an example, see the following template for an axios API call in a Firebase Cloud function: cloud function template edit: added text code snippet. The question whether or not it is secure to store the API key directly in this snippet, gi…

How to link table row to external URL with Javascript?

I my app I have a table like this: This is my Javascript: How come that clicking on Link 1 takes me to www.external.com (which is what I want) but clicking on Link 2 takes me to /entry/57/edit (which is not what I want)? I want both links to take me to www.external.com. How can this be done? Answer As

HTML page is not showing the info I need from json file

My script, this should be showing the Name of game computers in html but it does not, I have been trying so much andI betit will just be something stupid that is wrong or missing Console says : TypeError: data is undefined The console does show me retrieving the data works My function to show data on screen (…