Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Clear all local storage
- window.localStorage.clear();
- // Clear store in memory
- Mango.stores.session.removeAll();
- // Fake a session
- Mango.stores.session.add({
- bonuscard: "444444444444",
- email: "john.smith@mail.com",
- firstname: "John",
- fuelperks: "0.00",
- id: 2,
- key: "550f05a5aa074e8a3d1a",
- lastname: "Smith",
- savings: "972.39",
- store: "999",
- username: "johnsmith",
- zavers: "",
- })
- Mango.stores.session.sync();
Add Comment
Please, Sign In to add comment