Config & Properties
Global settings used to customize the behavior of the sync engine.
CloudSaver.space = location.host; // Separate isolated
"spaces"
CloudSaver.showIcon = true;
// Toggle cloud icon visibility
CloudSaver.usr = { name: null,
pass: null }; // User credentials
Data Persistence
Manually trigger synchronization between the browser and the cloud.
// Force save everything, overriding other data
await CloudSaver.Save();
// Save only changed data (use for autosave)
await CloudSaver.SaveChanges();
// Pull cloud data into local storage
await CloudSaver.Load();
User & Data Management
Functions to trigger built-in UI components for account and data management.
await CloudSaver.ShowLoginPopup(); // Returns true/false
await CloudSaver.VerifyUser();
// Returns true/false
await CloudSaver.RenameUser();
// UI to rename user
CloudSaver.OpenDataManager(); // Data
management UI