MCPcopy Create free account
hub / github.com/facebook/Rapid / _backupKey

Method _backupKey

modules/core/EditSystem.js:1257–1259  ·  view source on GitHub ↗

* _backupKey * Generate a key used to store/retrieve backup edits. * It uses `window.location.origin` avoid conflicts with other instances of Rapid. * @return {string} The key used to store/retrieve backup edits in localStorage

()

Source from the content-addressed store, hash-verified

1255 * @return {string} The key used to store/retrieve backup edits in localStorage
1256 */
1257 _backupKey() {
1258 return 'Rapid_' + window.location.origin + '_saved_history';
1259 }
1260
1261
1262 /**

Callers 4

initAsyncMethod · 0.95
saveBackupMethod · 0.95
restoreBackupMethod · 0.95
clearBackupMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected