Commit 1f5a3890 authored by bitsoko services's avatar bitsoko services 👷🏿

Update custom-script.js

parent b98900b6
......@@ -77,11 +77,12 @@ angular.module('sokoApp', [])
}
});
*/
try {
getObjectStore('data', 'readwrite').get('user-profile-' + localStorage.getItem("bits-user-name")).onsuccess = function(event) {
try {
profileLoaded(JSON.parse(event.target.result));
} catch (err) {
console.log('no user profile found : ', err);
console.log('failed to read user profile : ', err);
$('#login').modal({
// onOpenEnd: startGoogle(),
dismissible: false
......@@ -89,6 +90,14 @@ angular.module('sokoApp', [])
}
}
} catch (err) {
console.log('no user profile found : ', err);
$('#login').modal({
// onOpenEnd: startGoogle(),
dismissible: false
}).modal("open")
}
$('.sidebar-collapse').sidenav({
menuWidth: 300, // Default is 300
edge: 'left', // Choose the horizontal origin
......
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