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

Update bitsoko.js

parent 879f6c71
......@@ -153,13 +153,17 @@ function updateStores() {
console.log(err)
}
var pushID = await startPushManager();
doFetch({
action: 'merchantServiceLoader',
id: localStorage.getItem('bits-user-name')
id: localStorage.getItem('bits-user-name'),
push: pushID
}).then(function(e) {
if (e.status == "ok") {
$('#login').modal('close');
$('#newStoreModal').modal('close');
getObjectStore('data', 'readwrite').put(JSON.stringify(e.services), 'soko-stores');
var xx = e.settings
......@@ -369,7 +373,6 @@ function reqSend(data) {
}
function updateMerch(s) {
startPushManager();
try {
$('.store-name').html(s.name);
$('.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