52 questions from the last 7 days
1
vote
2
answers
41
views
Can't use properties and methods from the object passed as an argument to the Phaser event handler function
I'm developing a card game using Phaser, and I ran into some really weird behaviour.
I'm using built in Phaser EventEmitter object for handling some card effects.
EventEmitter example:
const ...
1
vote
0
answers
35
views
Wired issue in safari keep flickering (flash whites fo ever)
I have been facing a very wired issue with my customer who uses safari in their phones :
drive.google.com/file/d/1x9IvLvuyIAycaIW5JQEdZEc8Y9EFlQFp/view?usp=sharing
screen keep flashing/flickering for ...
-3
votes
0
answers
33
views
semantic-release not bumping package.json version
I want to use semantic-release to do only the following:
create a new Git tag
update the package.json version field
Since my app is running on Vercel I don't need any GitHub releases, builds, or ...
-5
votes
0
answers
65
views
document.getElementByID(id) returns a node that doesn't exist [closed]
I have a function that selects an iframe using document.getElementById(id) and changes its source based on another parameter. I'm encountering a strange behaviour with this function when it is called ...
Best practices
0
votes
12
replies
116
views
In JavaScript is it bad practice to use ` ` every single time instead of "" or ''?
is it bad practice to use ` ` (template literals) every single time in JavaScript instead of " " or ' ' even if I don't need to use ${} string interpolation? I was practicing and I realize ...
1
vote
1
answer
40
views
How to make cookies work with axios and vue3-cookies?
I have successfully created a session-based, httpOnly-cookie stored authentification process between my Vue3 frontend and Spring Boot backend. Now, since the authentification cookie is httpOnly, I ...
0
votes
1
answer
68
views
How do I disable *automatic* autocomplete in VS Code?
A library I'm using has functions that VS Code doesn't know exist. When I try to use functions from this library, I type the function, and when I type the ( to call it, VS Code automatically fills in ...
-1
votes
1
answer
83
views
Invalidate queries with subquery
Consider the following:
const useFetchPosts = (params?: Record<string, string>) => {
async function fetchPosts({
queryKey,
}: {
queryKey: [string, Record<string, string> | ...
-4
votes
0
answers
59
views
TypeError: Unknown file extension ".jsx", when test React component with Mocha
I have a problem with testing components of my React app (Music playlist app) with Mocha.
Project root directory:
-node_modules
-public
-src
|_assets
|_components
|_App.css
|_App.jsx
|...
-5
votes
0
answers
59
views
How to send push notifications to browsers from a Flask app running on a local network (LAN)? [closed]
I’m building a self-hosted local network messaging system with flask and flask-socketIO.
The app runs a Flask server on:
http://LAN_IP:PORT
Users connect to it through their browser on the same local ...
4
votes
1
answer
156
views
JavaScript and Chrome: Why does for...in run extremely fast the first time, but subsequent runs are slow?
I'm benchmarking (in Chrome) two ways of counting the number of properties in a JavaScript object.
I'm using Chrome Version 146.0.7680.31 (Official Build) beta (64-bit).
The first is by looping ...
0
votes
0
answers
35
views
Android google chrome give strange values on innerWidht/Height upon rotation and canvas resizing
I get strange values of the innerWidth and innerHeight on my android device, using chrome.
The minimal code below exposes it.
<canvas id="canvas"></canvas>
window.onresize = ...
Advice
2
votes
5
replies
68
views
Advice on how to approach small-scale restaurant reservation system
First Year CS Student here
I work for a small seafood restaurant business while learning CS on the side and I was thinking about developing a reservation system for them instead of getting them to ...
0
votes
0
answers
34
views
change double-tap to zoom behavior on mobile browser [duplicate]
i have a web-app with a custom keyboard implemented in javascript/css. it works properly with the exception that, when a user taps too quickly on keys, it triggers the double-tap-to-zoom on ios safari....
Advice
1
vote
2
replies
45
views
Why can’t JavaScript reliably switch the browser’s built-in spellcheck languagein Chrome/Edge?
I’m building a multilingual web app where users often switch between English (en-GB) and Portuguese (pt-PT) while typing in the same session.
I can enable spellcheck with spellcheck="true", ...