Skip to content

Commit

Permalink
fixed viewerCanvas access for webcomponents
Browse files Browse the repository at this point in the history
  • Loading branch information
jogibear9988 committed Oct 26, 2023
1 parent 2ef4822 commit a06d2d8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/sweethome3djsviewer/lib/viewhome.min.js
Expand Up @@ -42584,12 +42584,14 @@ function hideHomeOverlay() {
}
}
function HomePreviewComponent(f, d, a, c, e) {
if (document.getElementById(f)) {
let g = f;
if (typeof f === 'string')
g = document.getElementById(f);
if (g) {
var b = this;
this.createHomeRecorder().readHome(d, {
homeLoaded: function (j) {
try {
var g = document.getElementById(f);
if (g) {
if (e && e.navigationPanel != "none" && e.navigationPanel != "default") {
function i(k) {
Expand Down

0 comments on commit a06d2d8

Please sign in to comment.