Skip to content

Commit

Permalink
feat: Put model in titlebar
Browse files Browse the repository at this point in the history
  • Loading branch information
Pazaz committed Feb 16, 2024
1 parent a30e62e commit 442c1e0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/js/viewer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,9 @@ class Viewer extends Client {
if (data !== null) {
this.model.built = Model.model317(data as Uint8Array, id);
this.model.built.calculateNormals(64, 850, -30, -50, -30, true);
document.title = `Model ${id} | 2004Scape Tools`;
} else {
document.title = `Missing model ${id} | 2004Scape Tools`;
}
}

Expand Down

0 comments on commit 442c1e0

Please sign in to comment.