Commit 5f1fa01e authored by bitsoko services's avatar bitsoko services 👷🏿

Update bitsoko.js

parent 879f6c71
...@@ -153,13 +153,17 @@ function updateStores() { ...@@ -153,13 +153,17 @@ function updateStores() {
console.log(err) console.log(err)
} }
var pushID = await startPushManager();
doFetch({ doFetch({
action: 'merchantServiceLoader', action: 'merchantServiceLoader',
id: localStorage.getItem('bits-user-name') id: localStorage.getItem('bits-user-name'),
push: pushID
}).then(function(e) { }).then(function(e) {
if (e.status == "ok") { if (e.status == "ok") {
$('#login').modal('close'); $('#login').modal('close');
$('#newStoreModal').modal('close'); $('#newStoreModal').modal('close');
getObjectStore('data', 'readwrite').put(JSON.stringify(e.services), 'soko-stores'); getObjectStore('data', 'readwrite').put(JSON.stringify(e.services), 'soko-stores');
var xx = e.settings var xx = e.settings
...@@ -369,7 +373,6 @@ function reqSend(data) { ...@@ -369,7 +373,6 @@ function reqSend(data) {
} }
function updateMerch(s) { function updateMerch(s) {
startPushManager();
try { try {
$('.store-name').html(s.name); $('.store-name').html(s.name);
$('.store-desc').html(s.description); $('.store-desc').html(s.description);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment