Skip to content

Commit bf44124

Browse files
committed
Rebased
1 parent 77a8f62 commit bf44124

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

src/js/ConfigStorage.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ const ConfigStorage = {
2222
} catch (e) {
2323
// It's fine if we fail that parse
2424
}
25-
callback?.(result);
26-
} else {
27-
callback?.(result);
2825
}
2926
}
3027

src/js/tabs/options.js

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,15 @@ options.cleanup = function (callback) {
3131
};
3232

3333
options.initShowWarnings = function () {
34-
ConfigStorage.get('showPresetsWarningBackup', function (result) {
35-
if (result.showPresetsWarningBackup) {
36-
$('div.presetsWarningBackup input').prop('checked', true);
37-
}
34+
const result = ConfigStorage.get('showPresetsWarningBackup');
35+
if (result.showPresetsWarningBackup) {
36+
$('div.presetsWarningBackup input').prop('checked', true);
37+
}
3838

39-
$('div.presetsWarningBackup input').change(function () {
40-
const checked = $(this).is(':checked');
41-
ConfigStorage.set({'showPresetsWarningBackup': checked});
42-
}).change();
43-
});
39+
$('div.presetsWarningBackup input').change(function () {
40+
const checked = $(this).is(':checked');
41+
ConfigStorage.set({'showPresetsWarningBackup': checked});
42+
}).change();
4443
};
4544

4645
options.initPermanentExpertMode = function () {

0 commit comments

Comments
 (0)