Skip to content

Commit

Permalink
Check for empty content in motd.
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbound committed Jan 21, 2021
1 parent e4da4c2 commit f4c3cc4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Server/wwwroot/src/Main/App.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ export const MainApp = {
fetch("https://remotely.one/api/motd")
.then(async response => {
var content = await response.text();
if (localStorage["remotely-motd"] == content) {
if (content.trim().length == 0 ||
localStorage["remotely-motd"] == content) {
return;
}

Expand Down

0 comments on commit f4c3cc4

Please sign in to comment.