Skip to content

Commit

Permalink
Merge pull request #46 from FlexConfirmMail/fix-no-setting-file-bug
Browse files Browse the repository at this point in the history
Fix a bug on no setting file
  • Loading branch information
piroor authored Jan 31, 2025
2 parents a429279 + bdf9ea4 commit e3e33eb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/web/config-loader.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,12 @@ export class ConfigLoader {
console.debug("loadFile ", url);
try {
const response = await fetch(url);
console.debug("response:", response);
if (!response.ok)
{
return null;
}
const data = await response.text();
console.debug(data);
return data;
} catch (err) {
console.error(err);
Expand Down

0 comments on commit e3e33eb

Please sign in to comment.