Просмотр исходного кода

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

Taeeun Kim 3 лет назад
Родитель
Сommit
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;