diff --git a/core/client.js b/core/client.js index 97f0ae13f..bfecaec04 100644 --- a/core/client.js +++ b/core/client.js @@ -204,7 +204,11 @@ function loadFile(name, id) { function load(path) { return fetch((path || url()) + 'view').then(function(response) { if (!response.ok) { - throw new Error(response.status + ' ' + response.statusText); + if (response.status == 404) { + return null; + } else { + throw new Error(response.status + ' ' + response.statusText); + } } return response.json(); }).then(function(json) {