Commit e2454240 authored by bitsoko services's avatar bitsoko services 👷🏿

Update bitsoko.js

parent 5f1fa01e
...@@ -68,12 +68,12 @@ var playPendingOrders = function() { ...@@ -68,12 +68,12 @@ var playPendingOrders = function() {
}; };
function profileLoaded(p) { async function profileLoaded(p) {
$('.profile-image').attr('src', p.image); $('.profile-image').attr('src', p.image);
//p.ownerid=1; //p.ownerid=1;
localStorage.setItem('soko-owner-id', p.bitsokoUserID); localStorage.setItem('soko-owner-id', p.bitsokoUserID);
$("#signingIn").html("Signing In. Please Wait"); $("#signingIn").html("Signing In. Please Wait");
updateStores(); await updateStores();
setTimeout(userNamesInput, 18000); setTimeout(userNamesInput, 18000);
...@@ -146,7 +146,7 @@ function loadTheme() { ...@@ -146,7 +146,7 @@ function loadTheme() {
} }
function updateStores() { async function updateStores() {
try { try {
addStore() addStore()
} catch (err) { } catch (err) {
...@@ -834,7 +834,7 @@ persistentFunc(); ...@@ -834,7 +834,7 @@ persistentFunc();
//Box Shadow On Specific Pages //Box Shadow On Specific Pages
function latefunctions() { async function latefunctions() {
$(".pageBoxShadow").click(function() { $(".pageBoxShadow").click(function() {
$('.navbar-fixed nav').css({ $('.navbar-fixed nav').css({
'box-shadow': '0 2px 2px 0 rgba(0,0,0,0.14), 0 1px 5px 0 rgba(0,0,0,0.12), 0 3px 1px -2px rgba(0,0,0,0.2)', 'box-shadow': '0 2px 2px 0 rgba(0,0,0,0.14), 0 1px 5px 0 rgba(0,0,0,0.12), 0 3px 1px -2px rgba(0,0,0,0.2)',
...@@ -857,7 +857,7 @@ function latefunctions() { ...@@ -857,7 +857,7 @@ function latefunctions() {
setTimeout(location.reload(), 2000) setTimeout(location.reload(), 2000)
}); });
localStorage.setItem('bits-user-name', getBitsWinOpt('uid')); localStorage.setItem('bits-user-name', getBitsWinOpt('uid'));
updateStores(); await updateStores();
} }
setTimeout(function(e) { setTimeout(function(e) {
latefunctions() latefunctions()
......
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