All Questions
405 questions
-1
votes
1
answer
40
views
How to make my Node.js + React app open documents such as .pdf or .doc in browser?
I am looking to display a list of available documents to the user that they can choose to either view in browser or download to their device. The downloading part is already done and working, however ...
0
votes
0
answers
11
views
Buttons do not work when the page is opened in the smartphone browser
I have a React web application that when opened in the smartphone browser none of the buttons work, but if I refresh the browser, the buttons start working. Does anyone have any idea what might be ...
0
votes
0
answers
42
views
How do I make a "Picture in Picture" feature in react.js?
I want a picture-in-picture mode for a stopwatch I'm making because I want to be able to set it at a corner of my computer so I can keep track of how much I've worked.
I've seen that the Spotify ...
-4
votes
1
answer
56
views
Axios api post request not working after 7th try [closed]
My code is set to post a axios request after a set period of time. Every time it gets to the 7th iteration, no post request is being made and recieved by the backend. its not a rate limit problem or # ...
0
votes
0
answers
20
views
react app, different commits in different chrome accounts
after I pushed last commit to the production branch, not all chrome accounts were showing the last build. I have three google accounts, for two of them, there was the last build in the browser, ...
0
votes
1
answer
237
views
How to import modules in a web worker.js file using a React Vite app
I'm getting an error when trying to import modules in a web worker.js file using the Vite React framework.
I have my front-end component setup to invoke the web worker:
const worker = new Worker(new ...
0
votes
0
answers
172
views
Cookies Blocked in Cross-Origin Requests Between Netlify Frontend(Reactjs) and Railway Backend (Node ts)
I am experiencing an issue with cookies being blocked when using my deployed application. The backend is deployed on Railway and the frontend on Netlify. Everything works perfectly in the local ...
-4
votes
2
answers
97
views
Enable web browser's microphone access automatically
const checkMicrophoneAccess = async () => {
try {
const stream = await navigator.mediaDevices.getUserMedia({ audio: true });
stream.getTracks().forEach((track) => track.stop());
...
1
vote
0
answers
30
views
JS, Is there a way web client access file cached date of image url?
I have a react component for thumbnails in client,
export default function Thumbnail({
url,
updatedDate, // updatedDate is from server api
}) {
const cachedDate = new Date(.....);
const ...
1
vote
1
answer
62
views
How to run code before closing side-panel?
I'm building a browser extension using react, vite, typescript. The extension has side-panel and fullscreen tabs.
Only on fullscreeen tabs, I need to create a button/icon that appears only when side-...
0
votes
1
answer
191
views
AcroForms PDF form on the web
I am currently trying to display a PDF form as part of my web page (not like described here: Embed a fillable pdf form on web page, they are using Acrobat for this). The user should be able to edit ...
0
votes
0
answers
25
views
Does triggering component renders during animation frame wait til frame is done, or synchronously reflow/paints then finish the frame callback?
I've seen a few similar-ish questions but I'm struggling to find a definitive answer - any advice appreciated!
Consider:
you have a react component
you have an animation loop running via ...
1
vote
1
answer
50
views
Is it possible to continue updating the page title in React even when the browser tab is switched?
I'm working on a Pomodoro application in React and I can't figure out how to continue updating the page title (<title></title>) when the browser tab is switched. Is this even possible with ...
1
vote
1
answer
53
views
Fetch API Returns null After Closing and Reopening a Tab in Playwright E2E Test
I'm currently writing an E2E test using Playwright to simulate resuming a quiz session after closing and reopening a browser tab. The issue I'm encountering is that after reopening the tab, the fetch ...
0
votes
0
answers
16
views
How to highlight specific keywords throughout the browser from session storage using React without Chrome extensions?
I want to build a functionality in my React app where specific keywords, stored in session storage, are highlighted across all web pages visited in the browser. I don't want to rely on Chrome ...