Browse Source

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

Taeeun Kim 3 năm trước cách đây
mục cha
commit
13de4a62e4
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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;