Skip to content

Commit

Permalink
V8: fix notification settings
Browse files Browse the repository at this point in the history
fix #1480
  • Loading branch information
chrmod committed Mar 4, 2024
1 parent 46131fb commit e9d629d
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions extension-manifest-v2/src/classes/Account.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,21 +327,8 @@ class Account {
*/
buildUserSettings = () => {
const settings = {};
const now = Date.now();
SYNC_SET.forEach((key) => {
// Whenever we prepare data to be sent out
// we have to convert these two parameters to objects
// so that they may be imported by pre-8.2 version
if (key === 'reload_banner_status' ||
key === 'trackers_banner_status') {
settings[key] = {
dismissals: [],
show_time: now,
show: conf[key]
};
} else {
settings[key] = conf[key];
}
settings[key] = conf[key];
});
return settings;
};
Expand Down

0 comments on commit e9d629d

Please sign in to comment.