Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Fix exception throwing - Close 942 #943

Merged
merged 1 commit into from
Nov 2, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions app/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@ const sendDetectedLang = (locale) => {
// read config data from JSON file
const getConfig = () => {
storage.get('config', (error, data) => {
if (error) throw error;
lang = data.lang;
sendDetectedLang(lang);
if (!error) {
lang = data.lang;
sendDetectedLang(lang);
}
});
};

Expand Down