I realized when we talk about "singleton" what we really mean is a "namespace".
This is an alternative solution to PR #703
All instances are now global constants. So every reference will be the same instance.
No singleton pattern here.
How to use:
use Services.storage() to get a WebStorage
Call Services.login() before using any Storage interface function. It is safe to call Services.login() multiple times. All instances will remain the same.
I realized when we talk about "singleton" what we really mean is a "namespace". This is an alternative solution to PR #703 All instances are now global constants. So every reference will be the same instance. No singleton pattern here.
How to use: