浏览代码

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

Taeeun Kim 3 年之前
父节点
当前提交
13de4a62e4
共有 1 个文件被更改,包括 1 次插入0 次删除
  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;