Skip to content

Commit

Permalink
Update browser.js (#1270)
Browse files Browse the repository at this point in the history
  • Loading branch information
lutzroeder committed Apr 28, 2024
1 parent 5bf3ec9 commit b86b58a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/browser.js
Expand Up @@ -145,7 +145,8 @@ host.BrowserHost = class {
if (this._meta.file) {
const [url] = this._meta.file;
if (this._view.accept(url)) {
const status = await this._openModel(this._url(url), this._meta.identifier || null);
const identifier = Array.isArray(this._meta.identifier) && this._meta.identifier.length === 1 ? this._meta.identifier[0] : null;
const status = await this._openModel(this._url(url), identifier || null);
if (status === '') {
return;
}
Expand Down

0 comments on commit b86b58a

Please sign in to comment.