Explorar o código

Docs: add target=_blank attribute to primitives page (#24026)

Taeeun Kim %!s(int64=3) %!d(string=hai) anos
pai
achega
13de4a62e4
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      manual/resources/threejs-primitives.js

+ 1 - 0
manual/resources/threejs-primitives.js

@@ -707,6 +707,7 @@ const geometry = new THREE.WireframeGeometry(
 
   function addLink(parent, name, href) {
     const a = document.createElement('a');
+    a.setAttribute('target', '_blank');
     a.href = href || `https://threejs.org/docs/#api/geometries/${name}`;
     const code = document.createElement('code');
     code.textContent = name;