Skip to content

Commit 1270f70

Browse files
authored
Resolved issue of data storage by first programm run (#733)
resolved issue of data storage
1 parent 529280a commit 1270f70

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main.js

+3
Original file line numberDiff line numberDiff line change
@@ -1729,6 +1729,9 @@ function BlackboxLogViewer() {
17291729

17301730
function saveOneUserSetting(name, value) {
17311731
prefs.get('userSettings', function(data) {
1732+
if (!data) {
1733+
data = {};
1734+
}
17321735
data[name] = value;
17331736
prefs.set('userSettings', data);
17341737
});

0 commit comments

Comments
 (0)