Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Documentation/scripts/build-examples.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ function buildHtml(
</style>
</head>
<body>
<div id="vtk-root" style="height:100%; width:100%;"></div>
<script>
window.global = window.global || {};
</script>
Expand Down
6 changes: 2 additions & 4 deletions Examples/Applications/OfflineLocalView/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,7 @@ export function load(container, options) {

export function initLocalFileLoader(container) {
autoInit = false;
const exampleContainer =
document.querySelector('.content') || document.querySelector('#vtk-root');
const exampleContainer = document.querySelector('.content');
const rootBody = document.querySelector('body');
const myContainer = container || exampleContainer || rootBody;

Expand Down Expand Up @@ -179,8 +178,7 @@ export function initLocalFileLoader(container) {
const userParams = vtkURLExtract.extractURLParameters();

if (userParams.url || userParams.fileURL) {
const exampleContainer =
document.querySelector('.content') || document.querySelector('#vtk-root');
const exampleContainer = document.querySelector('.content');
const rootBody = document.querySelector('body');
const myContainer = exampleContainer || rootBody;
if (myContainer) {
Expand Down
Loading