Skip to content

Commit

Permalink
Ensure frontend can handle version response without meta data #6
Browse files Browse the repository at this point in the history
  • Loading branch information
sedan07 authored and Seb Dangerfield committed Jan 28, 2021
1 parent 0a0c528 commit d08c8af
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 42 deletions.
6 changes: 3 additions & 3 deletions public/dist/css/app.css

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions public/dist/css/dashboard/dashboard.css

Large diffs are not rendered by default.

56 changes: 28 additions & 28 deletions public/dist/js/all.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/dist/js/app.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/dist/js/vendor.js

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions public/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"/dist/js/vendor.js": "/dist/js/vendor.js?id=e330d11061bb920e9441",
"/dist/js/app.js": "/dist/js/app.js?id=85f4e87f2c37c96e623d",
"/dist/css/dashboard/dashboard.css": "/dist/css/dashboard/dashboard.css?id=b6a9327dd3b9b7c7ed2d",
"/dist/css/app.css": "/dist/css/app.css?id=c7bf7628a7a22dfec2ed",
"/dist/js/vendor.js": "/dist/js/vendor.js?id=22c73f1593b70b9d016d",
"/dist/js/app.js": "/dist/js/app.js?id=12e6b695b831cbabd3d1",
"/dist/css/dashboard/dashboard.css": "/dist/css/dashboard/dashboard.css?id=1aa88eca219653fad120",
"/dist/css/app.css": "/dist/css/app.css?id=35430a94ad29f6d41963",
"/dist/js/manifest.js": "/dist/js/manifest.js?id=40dcfff9d09d402daf38",
"/dist/js/all.js": "/dist/js/all.js?id=bbc128edf91b2898cdf0"
"/dist/js/all.js": "/dist/js/all.js?id=1b19223dac30787790fe"
}
2 changes: 1 addition & 1 deletion resources/assets/js/cachet.js
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ $(function () {
dataType: 'json',
url: '/api/v1/version',
}).done(function (result) {
if (result.meta.on_latest === false) {
if (("meta" in result) && (result.meta.on_latest === false)) {
$('#update-alert').removeClass('hidden');
}
});
Expand Down

0 comments on commit d08c8af

Please sign in to comment.