Skip to content

Commit

Permalink
fix(demo): multi-arch image example is now working
Browse files Browse the repository at this point in the history
  • Loading branch information
Joxit committed Jul 3, 2021
1 parent 026f65a commit 840a00e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ registry-data
_site
*.orig
.serve/
demo/v2
2 changes: 1 addition & 1 deletion dist/docker-registry-ui.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "docker-registry-ui",
"version": "2.0.6",
"version": "2.0.7",
"scripts": {
"start": "ROLLUP_SERVE=true rollup -c -w",
"build": "rollup -c",
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/docker-image.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export class DockerImage {
oReq.addEventListener('loadend', function () {
if (this.status == 200 || this.status == 202) {
const response = JSON.parse(this.responseText);
if (response.mediaType === 'application/vnd.docker.distribution.manifest.list.v2+json' && !response.layers) {
if (response.mediaType === 'application/vnd.docker.distribution.manifest.list.v2+json' && self.opts.list) {
self.trigger('list', response);
const manifest = response.manifests[0];
const image = new DockerImage(self.name, manifest.digest, { ...self.opts, list: false });
Expand Down

0 comments on commit 840a00e

Please sign in to comment.