2,527,507 questions
- Bountied 1
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
19
views
How to programatically update lexical input on whatsapp
I am trying to programmatically update input on whatsapp, below code only updates value of input visually but doesn't trigger the function it runs when a user input
Here is the code:
const ...
-2
votes
0
answers
35
views
Event Listener Duplication Issue in JS [closed]
I have a simple shopping list with Firebase Firestore (v8) hosted on GitHub Pages.
The problem: When I add an item on my device (PC or mobile), it duplicates in the list.
The duplication only appears ...
0
votes
0
answers
34
views
Typescript with useReducer
TypeScript useReducer generics collapsing to never
I’m running into issues with TypeScript and the useReducer hook. I want to model a form where each step has its own type and array/object fields, but ...
0
votes
0
answers
21
views
Input in modal problem with cursor on iOS Safari
I can not figure out what I'm doing wrong but I can not get working input field inside my modal. I'm building language switcher for Shopify but when modal is opened and I'm start typing inside search ...
0
votes
0
answers
38
views
Place element in the top layer next to a dialog while dialog is open
We have the following DOM structure:
<dialog class="slide-in-menu" role="menubar">
<button onclick="toggleSomething()" role="switch" aria-pressed=&...
0
votes
0
answers
36
views
Disappearing menu hamburger from address bar on Safari mobile
I have a web page where I allow users to download an image by clicking a button. I’m using vanilla JavaScript like this:
async function downloadFile(url) {
const response = await fetch(url);
const ...
-4
votes
1
answer
58
views
how to optimize multiple event listeners [closed]
i need help refactoring my code having multiple event listeners. Is there a way you can make the code shorter?
editProfileModalClosedBtn.addEventListener("click", () => {
closeModal(...
0
votes
0
answers
27
views
Intercept window.location.replace to modify URL before redirect [closed]
I need to find a way to pass query parameters between websites.
First, I provide a link to the 1st site (which I don’t have access to) with the query, for example ?utm_source=website-x.
That same site ...
-1
votes
1
answer
34
views
How do i access currency from the restcountries API [closed]
First of all I'm a beginner and I'm trying to get the currency details from the rest countries API, i have tried many times and i don't seem to find the right solution.
"currencies": {
"...
0
votes
0
answers
26
views
Is injecting JS via an extension still possible when the page has updated the content security policy to require trusted types
I wrote a (firefox) extension a couple of years ago to add a few hotkeys to Youtube, to adjust playback rate and volume, so that I could use a secondary keyboard as a sort of remote control (via a ...
-1
votes
0
answers
30
views
Async/await inside Array.forEach doesn't wait — how can I run async tasks sequentially? [duplicate]
I'm trying to perform asynchronous operations for every item in an array sequentially using but my current code doesn't wait for each operation to finish — all operations start at once. I'm new to ...
0
votes
0
answers
18
views
Jest/Puppeteer test for a Chrome Extension fails with timeout on Firestore getDoc, but manual tests and Cloud Function succeed
I am building a Manifest V3 Chrome Extension using Firebase and testing it with Jest and Puppeteer. My manual testing works perfectly, but one specific automated test consistently fails with a 30-...
0
votes
0
answers
32
views
frequencyhistogram() returns decimal number
I have a raster which value ranged between 1-5 (integer)
I'm trying to find the frequency of those values within a certain region using frequencyHistogram().
However, somehow I got the result in float ...
0
votes
0
answers
19
views
Sandbox access violation: Blocked a frame in [email protected] cordova build
I have make build using cordova platform add [email protected] version
but getting error when run on iphone device
I am trying to my web in iFrame and iFrame host in cordova app. (web framework is DNN(https:/...
1
vote
1
answer
43
views
How to enforce Node version in Yarn v4?
I have this in package.json:
"engines": {
"node": ">=18.20.5"
},
But when trying to install (yarn install) using Node version 18.20.3 did not throw any errors,...