@monterosa/sdk-lvis 0.18.2 → 0.18.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -21,7 +21,7 @@ var Emitter__default = /*#__PURE__*/_interopDefaultLegacy(Emitter);
21
21
  var assignIn__default = /*#__PURE__*/_interopDefaultLegacy(assignIn);
22
22
  var Cookie__default = /*#__PURE__*/_interopDefaultLegacy(Cookie);
23
23
 
24
- var version = "0.18.2";
24
+ var version = "0.18.3";
25
25
 
26
26
  const LViSDate = new Emitter__default["default"]();
27
27
 
@@ -1332,13 +1332,13 @@ class Poll extends Frame {
1332
1332
  Storage.set(name, value, expire);
1333
1333
  }
1334
1334
 
1335
- recoverVote() {
1335
+ restoreVote() {
1336
1336
  const name = `frame-${this.getId()}`;
1337
1337
 
1338
1338
  try {
1339
1339
  this.votedFor = JSON.parse(Storage.get(name));
1340
1340
  } catch (exception) {
1341
- console.error('Unable to recover option user voted for', exception);
1341
+ console.error('Unable to restore option user voted for', exception);
1342
1342
  }
1343
1343
  }
1344
1344
 
@@ -1361,7 +1361,7 @@ class Poll extends Frame {
1361
1361
  this.state = config.data.state || Poll.STATE_STARTED;
1362
1362
  this.requiresValidatedUser = config.data.requires_validated_user;
1363
1363
  this.resultsTriggerPostponed = false;
1364
- this.recoverVote();
1364
+ this.restoreVote();
1365
1365
  }
1366
1366
  }
1367
1367