cncjs / cncjs-shopfloor-tablet

A simplified UI for cncjs optimized for tablet computers in a production (shop floor) environment.
https://cncjs.github.io/cncjs-shopfloor-tablet/src
MIT License
35 stars 29 forks source link

Problems with incognito mode #37

Open wreutz opened 2 years ago

wreutz commented 2 years ago

Hi, I'm using the install script for cncjs and activated the kiosk mode. This works but I have problem:

I use the url http://localhost:80/tablet to open in tablet view but it always falls back to the default web interface. Tried it on my browser and if I open a private browsing window or opening a fresh browser profile directly with http://:80/tablet I get redirected to the default interface.

when I take a regular window or if I disable incognito mode on the raspberry pi kiosk it happens as followed:

so it must have something to do with cookies / local storage etc.

Would it be possible to fix it that the redirect is omitted when directly accessed for the first time like in an private browsing environment?

mrmazakblu commented 6 months ago

i see the same or at least very similar situation. The first time to open browser, then go to /tablet, i am forwarded to full interface. Second time open /tablet i get tablet UI.

Difference is I am not using incognito or kiosk mode.

MitchBradley commented 6 months ago

I don't know how to fix it. I don't understand all the details of how the redirect works. If anyone can supply a patch, I will apply it.