1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-09 16:06:21 +02:00

script.js: fix condition for saving settings

This commit is contained in:
Kushagra Gour
2018-01-24 10:33:30 +05:30
parent 4cd8351c0c
commit d221e2002f

View File

@ -1734,7 +1734,7 @@ loginModal, profileModal, profileAvatarImg, profileUserName, openItemsBtn
db.sync.set(obj, function() {
alertsService.add('Setting saved');
});
if (!window.IS_EXTENSION) {
if (window.user) {
window.db.getDb().then(remoteDb => {
remoteDb
.collection('users')