Skip to content

Commit

Permalink
Add aframe-injected attribute to the created a-loader-title div so it…
Browse files Browse the repository at this point in the history
… doesn't show up when copying a-scene to clipboard in aframe-inspector (fix aframevr/aframe-inspector#764) (#5574)
  • Loading branch information
vincentfretin committed Sep 8, 2024
1 parent 97165a3 commit 4766f4d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/scene/loadingScreen.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* global THREE */
var AFRAME_INJECTED = require('../../constants').AFRAME_INJECTED;
var utils = require('../../utils/');
var styleParser = utils.styleParser;

Expand Down Expand Up @@ -88,5 +89,6 @@ function setupTitle () {
titleEl.className = LOADER_TITLE_CLASS;
titleEl.innerHTML = document.title;
titleEl.style.display = 'none';
titleEl.setAttribute(AFRAME_INJECTED, '');
sceneEl.appendChild(titleEl);
}

0 comments on commit 4766f4d

Please sign in to comment.