A welcome app?

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4536 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2023-10-18 18:54:37 +00:00
parent c3da10bef6
commit e785f7f10a
17 changed files with 407 additions and 1 deletions

View File

@ -473,7 +473,8 @@ function guessMode(name) {
function loadFile(name, id) {
return fetch('/' + id + '/view').then(function(response) {
if (!response.ok) {
throw new Error('Request failed: ' + response.status + ' ' + response.statusText);
alert('Request failed: ' + response.status + ' ' + response.statusText);
return 'missing file!';
}
return response.text();
}).then(function(text) {