The web client is created in React, I run API calls using superagent with the. To make sure the secure option works behind the proxy. Express includes this: app.set('trust proxy', 1) // trust first proxy my API setting/using the cookie is at another URL "mywebsite.io" (different extension)Ĭookie-session options are: name: 'session',īoth website and API implement https.my website is hosted at "" (names modified for this forum).on iOS (Safari, chrome, firefox), the cookie doesn't seem to ever be set (iOS 15.3).on Android/Firefox, I can setup the session cookie, but I cannot modify it once set, I can't event erase it by setting req.session=null.I am trying to use cookie-session in express / nodejs, my setup works on PCs, but not on mobile: check if is still scrolling after x secondsĬonsole.log(video.currentTime + " newreading") Scrollpos = e.scrollPos / 3000 //the higher the number, the slowerĭelay += (scrollpos - delay) * accelAmount Ĭonsole.log(video.currentTime + " reading")
Node js windows cannot find module code#
This is my code so far: const action = document.querySelector(".action") Ĭonst video = action.querySelector("video") Ĭonst controller = new ScrollMagic.Controller() The set-back is working but it is not happing after the "Interval". I have e video that i am scrolling with my mousewheel.Įverything is working fine but i would like to check if the user is still scrolling and if it is not so after 10 seconds i would like the video/scrollposition to set-back to zero.