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)
  • Loading branch information
vincentfretin committed Sep 7, 2024
1 parent e029e55 commit 512d23e
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 512d23e

Please sign in to comment.