The way you are implementing this will not work.
Let me show you:
-
This "cloud" variable is set:
-
I clear my local storage to simulate a fresh PC (you are storing things there):
- I reload the page
Where did the data go?
I've tried to explain this to you several times. If you don't have a proper backend, these "cloud variables" will not work.