mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-10 00:16:18 +02:00
script.js: fix condition for saving settings
This commit is contained in:
@ -1734,7 +1734,7 @@ loginModal, profileModal, profileAvatarImg, profileUserName, openItemsBtn
|
|||||||
db.sync.set(obj, function() {
|
db.sync.set(obj, function() {
|
||||||
alertsService.add('Setting saved');
|
alertsService.add('Setting saved');
|
||||||
});
|
});
|
||||||
if (!window.IS_EXTENSION) {
|
if (window.user) {
|
||||||
window.db.getDb().then(remoteDb => {
|
window.db.getDb().then(remoteDb => {
|
||||||
remoteDb
|
remoteDb
|
||||||
.collection('users')
|
.collection('users')
|
||||||
|
Reference in New Issue
Block a user