From 512d23e60fa80473dc26a1a876726ead97a5bb88 Mon Sep 17 00:00:00 2001 From: Vincent Fretin Date: Sat, 7 Sep 2024 13:12:40 +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) --- 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); }