update storage
This commit is contained in:
parent
9fc4c86111
commit
3beaf88745
15 changed files with 36 additions and 29 deletions
4
dashboard-ui/thirdparty/apiclient/device.js
vendored
4
dashboard-ui/thirdparty/apiclient/device.js
vendored
|
@ -17,13 +17,13 @@
|
|||
var randomId = '';
|
||||
|
||||
// Since the above is not guaranteed to be unique per device, add a little more
|
||||
randomId = store.getItem(keyName);
|
||||
randomId = appStorage.getItem(keyName);
|
||||
|
||||
if (!randomId) {
|
||||
|
||||
randomId = new Date().getTime();
|
||||
|
||||
store.setItem(keyName, randomId.toString());
|
||||
appStorage.setItem(keyName, randomId.toString());
|
||||
}
|
||||
|
||||
keys.push(randomId);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue