From 4766f4db79917ebbdc47d1d212fdd7a8ff7eb2bb Mon Sep 17 00:00:00 2001 From: Vincent Fretin Date: Sun, 8 Sep 2024 08:52:13 +0200 Subject: [PATCH] Add aframe-injected attribute to the created a-loader-title div so it doesn't show up when copying a-scene to clipboard in aframe-inspector (fix aframevr/aframe-inspector#764) (#5574) --- src/core/scene/loadingScreen.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/scene/loadingScreen.js b/src/core/scene/loadingScreen.js index efe43fc73c0..2f9958081e2 100644 --- a/src/core/scene/loadingScreen.js +++ b/src/core/scene/loadingScreen.js @@ -1,4 +1,5 @@ /* global THREE */ +var AFRAME_INJECTED = require('../../constants').AFRAME_INJECTED; var utils = require('../../utils/'); var styleParser = utils.styleParser; @@ -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); }